Microsoft decided to move to be a cloud services company instead of an operating system company. The operating system is merely a convenient means to acquiring new service subscriptions.
Apple is a hardware company and likes to have control over the whole user experience. Microsoft doesn’t care about the experience as long as they can sell subscriptions, and doesn’t care much about hardware either.