Amazon famously turned no profit for nearly 15 years. When you run a large business you can do things like reinvest what would have been profit into new projects. This is the whole point of a growth company.
Recognize that, simplistically, Profit = Revenue - Expenses, and that expenses is a dial which can be turned somewhat arbitrarily.