Capitalists don't chase profit, they chase growth. They're not interested in the profit a company is, or isn't, turning today. They're interested in future profits, future growth. Some projects are loss leaders, some are the true money spinners.
Uber only reported its first ever annual profit
this year. The company has seen exceptional growth and expansion, into new markets and new areas of business since it's inception 15 years ago.
US taxi app firm turns $1.8bn loss into $1.1bn profit after years of spending billions of investors’ cash to expand
www.theguardian.com
Amazon, the retail giant best known for its dominating marketplace and next day delivery, isn't profitable without AWS (Amazon Web Services). The company would be arguably better positioned if it closed down its entire retail operation, but that would spook investors and Wall Street, because they still see online retail as a massive growth sector.
Unfortunately there's not much common sense in capitalist economics.