They're the world's largest third party publisher - they're already out of the console wars, and hardware is clearly a side hustle for them.
The Microsoft Corporation's concerted efforts over the last decade have been around "open platforms" - for example, getting their direct MS store onto Android and iPhone - and I suspect this will be their focus next. If everything is an Xbox, Microsoft doesn't have to pay platform fees, or go through the pain of trying to push hardware. They couldn't sell phones, and now they can't sell consoles, so they're flipping the table. Getting open stores into the console space makes the most sense because then Sony is forced to open their platform - and Microsoft can sell Game Pass subs, games, and whatever else directly to their customers and not pay any the platform holder fees. In that scenario, it doesn't matter who sells what hardware: the platform itself isn't what generates the profits anymore.