Google is an ad company, and a hardware/smartphone company, and an enterprise collaboration company, and a cloud hosting company, and lots more.
Similarly Apple is a hardware company which is getting more and more of its revenue from digital sales, subscriptions and even advertising every year. They can and do track their users exactly like Google.
It is naive to think that any company at that scale has your best interests at heart. They will do whatever it takes to make more money, period.