Call it what you like. Write it off as them improving their image with the public, or as getting more users into the ecosystem, or becoming more vertically integrated.
But fundamentally, why is doing something that is good for people looked at as such a bad thing. From what I understand the public don't even have the majority stake in the company, and don't really have to get a say in how it is run. If they don't like that they can buy other companies stock.
If ones goal is to maximize happiness (or some other equivalent metric), there will be times at which the decision to maximize profit will diverge from this goal, and the ethical decision will be to spend money (which you have from profits in other sectors) to develop something at a net loss because you think its right.
(I'm not affiliated with google, this is just a broader point that irritates me).