That's not shareholder 101. Investors understand investment, risk, and the concept of long term gains. People invest in companies that are unprofitable or are doing unprofitable things because they're betting that long term those things will become profitable and their investments will pay off.
People invested in Tesla for years even though it didn't manage a profit until 2020. The reality is that the planet is going to run out of fossil fuels and Tesla would be set to flourish as the shift to solar energy and electric cars happens. That's why they paid hundreds per share for an unprofitable company. There's huge potential for that stock to be insanely valuable. Tesla would have still lost money in 2020 had it not been able to sell environmental regulatory credits it didn't use. Yet the stock is hundreds per share.
Gamepass is a new business model that has the potential to pay off for investors if consumer behavior in regard to video game consumption changes. Microsoft is betting that more people are going to want to subscribe to a game library instead of spending money to build their own. Investors in Microsoft are typically comfortable with less short term gain in anticipation of better long term gain if that's how it turns out.