E2E Encryption and messaging

There is a point that has never been clarified for me regarding e2e encryption. What is stopping apps such as Whatsapp from just reading and recording your messages to a server after its decrypted in the app?

This is not a question about what messaging service to use, just trying to clarify my understanding of e2e encryption.

Found here /// Privacy Galaxy!