Why did Microsoft follow the orders of the president, if it wasn't because they're afraid of payback in terms of "something that leads to us loosing money"?
Money perverse the actions of the for-profit companies, as suddenly you have someone like Tim Cook giving gifts to the president, as the survival of his company depends on a specific person having a good view of them personally.
If neither of these companies were so hellbent on doing everything they can for profit, and instead focused on providing reliable, trustworthy and user-focused services, they wouldn't have that worry anymore. But of course, this is a pipe-dream and not at all realistic in the current climate.