Consoles aren't going to be obsolete anytime soon while the alternatives, PCs and laptops, are more expensive, worse at the same price range, and provide worse handheld experience. Less of a market share maybe, but still a viable niche.
From MSs perspective Xbox is just a lockdown gaming PC tied to their store