Apple, Google, and Amazon are so profitable because they know what to lose money on