It was never a surprise this will happen sooner or later because of Microsoft's new consoles in XBOX Series X/S. According to The Verge, Microsoft had to end the production of Xbox One Console in order to focus more on their new generation console Series X/S. This is done to push up the sales of the consoles in order to compete with Playstation 5.
https://www.theverge.com/2022/1/13/22881211/microsoft-discontinues-xbox-one-consoles-2020
https://www.theverge.com/2022/1/13/22881211/microsoft-discontinues-xbox-one-consoles-2020