Google, Facebook, and Twitter engage in a lot of cold, opportunistic, and morally questionable business practices in order to maintain and expand their dominance.

There's various ways executives of these type of companies cope with behaving in such a way:

1) "That's the way business works, I regret nothing. SFO."
-or-
2) "I'll give a shitload of money to charity, and that totally makes up for it."
-or-
3) "I'll support left wing politics in order to show how much I care for the little guy, and will instill this into our corporate culture. That will make up for it."

Silicon Valley engages in #3.

Bill Gates engaged in #2.