Windows has stopped being Microsoft't core business since Windows 8 (2015), and turned into an expensive liability. The core of Microsoft business now lies in selling cloud services, compute, and Office 365 subscriptions.
The problem is - users pay for Windows only once, and not each year like all other fancy rich companies like Adobe make their users do. And the market is saturated, because Microsoft became monopoly around 1995. Every PC sold has Windows installed, and since everyone on the planet already owns one PC per person (citation needed), the sales directly depend on the birth rate.
Trying to change to subscription model was met with violent pushback from users, so they started adding advertisements to taskbar starting in Windows 10, and created a shittiest app store ever to copy Apple.
They have been trying to kill Windows ever since, but they cannot due to numerous contract obligations.