As long as Bing, Windows Phone, and Surface Tablets exist, Xbox will exist.
Its all about keeping your foot in the market. If they time the next gen right, get a year on the PS5 and get good PR day 1, then they will have far more revenue then they do now.
Besides, it gives MS a brand presence in the living room.