This isn't always true. A lot of companies collect data on their users that they use internally and don't sell to third party sources. Pretty much any large app, even paid apps collects usage data etc in order to better understand their user base and optimize their app.