All of those activities make them money. None of them are charity.
Hmm, some ways Google has hurt me. They bought Revolv and turned my expensive home automation into a paperweight to try and force me to buy into the Nest ecosystem. That's a good example.