How the heck does Amazon make money?

The online retailer's Prime Day sale could hurt profits in the short-term. Free shipping is costly for Amazon. But the company is focused on keeping its customers loyal -- especially around the holidays.