Windows 10 was initially developed to stop the very negative reaction to Windows 8. Around that time, it became clear to Microsoft that they weren't going to profit on Windows itself any more and the future was in the cloud.
Windows did a lot of underhanded things to keep people updating Windows and Office before, but it wasn't trying to sell services as a way to keep the company up and running.