It's called consideration. It's one of the main tests for a contract.
But the consideration does not have to in the form of money, it just has to be "worth" something. The considerations in question here are personal information on the users' side and the Whatsapp app+service on the company's side.