Apple has plaintext cloud backups for Messages app (SMS/MMS & iMessage) so they have access to your texts sent to iPhone users, along with the carriers.