You're entirely right, but they need to maintain Windows in order to promote those services. The OS and their various applications have a symbiotic relationship where they prioritize each other.
If Microsoft discontinued Windows and switched to just providing web apps, the competition would be a lot stiffer.
"maintain" meaning keeping it somewhat workable or actually improving it?
ATM windows still has enough of a moat that they can comfortably do the former.