Why does it matter (from the company's ability to fail perspective) what you immediately think of? (yeah, Windows isn't their main product, quick search says it's 10% revenue vs 40% for servers, 22% office, and 9% gaming, so wouldn't that decline be relevant in explaining why it's neglected and fail?)
If you aren't running Windows, you probably aren't using Office. Half the reason for Office is Exchange, and half the reason is the integration of Exchange with Active Directory.
Without any of that, does Office make sense anymore compared to something like GSuite?
Windows for personal computers and Office are the only products that make Microsoft relevant. No one on god's green earth is choosing Windows Server on its own merits: They're picking it for software compatibility reasons stemming from software being written on, and exclusively targeting, Windows Desktop. Hell, most of the office suite is chosen because it's easier to buy more stuff from somebody you're already buying stuff from than to find someone new. No one has ever chosen Teams as the best product in its space.
Very few products Microsoft sells would be worth buying by themselves. They exclusively make mediocre products that are merely the default choice once you've been hoodwinked into buying into Windows or XBOX. If the break Windows, all the money disappears.