When you type a message on your computer, the command is sent to your phone (via the cloud), and your phone sends the actual SMS/MMS to the recipient. To the recipient, it looks like a standard text from your number.