You answered your own question.....
As it currently stands... yes, they aren't making a profit. I am suggesting a massive business model shift and focus. If Valve makes significant profits off just being a store, then can you imagine what kinda profis MS could make being a store, a publisher, and a service provider? But as it stands, MS keeps trying to support strategies and initiatives that are the equivalent of them shooting themselves in the foot.
Just to add some context to what I mean...
94% of PC gamers game on a Windows system, and an overwhelming majority of those gamers buy their games from the Steam store, an app running on a Windows system. In fact, this is so bad that a lot of devs don't even bother releasing their games on the Windows Store. MS could have spent a quarter of the billions it sunk into fighting PlayStation to make itself the primary source of PC game purchases. By literally paying devs a small amount to ensure that their games release on their store, while at the same time reducing what gamers pay for those games.
MS has been fighting a console war for 25years.... and has pretty much lost for those two decades... all the while the war they really should have been fighting was right in their own house with Steam.
The absolute best thing for MS/Xbox, and this would make them more profitable than everyone... is to be the best multiplatform publisher they can be and be the primary and best source for PC game purchases and services, and to have a gamer-focused version of Windows that just happens to be the best version of windows to run intensive, resource heavy apps, which will make it a version of windows championed by gamers and creators.
And the crazy thing is that it wouldn't even take them 5 years to accomplish this. As it stands, if I ran Xbox, and I had a $10B treasure chest and I am given 6 years, by the end of those 5 years, I will be the best publisher on the market, and I will be the dominant platform for PC game sales and services