Legally it wasn't free. But illegally it always was, at least it was as good as free.
In fact Microsoft itself wanted people to do it. Because if students and ordinary people pirate their OS, they will be trained to use it in everyday life. Later on, they would sell the OS to enterprises when the same people would eventually work there. That way they can always claim their OS was the most widely used OS in the industry.
Plus if they hadn't let people freely pirate their OS, Linux would have eaten their lunch big time.
Free as in legally free is what I meant; otherwise, we can argue all day that OS/2 and Solaris and OS X and IRIX were "always" free since it was (and indeed, still is) possible to pirate them.
You're also significantly overestimating the number of folks who actually installed Windows themselves, let alone who did so with a pirated version. Most Windows installations are OEM preinstallations, and Microsoft has been well aware of this (and actively encouraged this, albeit being dinged in the process for violating the Sherman Antitrust Act).
In fact Microsoft itself wanted people to do it. Because if students and ordinary people pirate their OS, they will be trained to use it in everyday life. Later on, they would sell the OS to enterprises when the same people would eventually work there. That way they can always claim their OS was the most widely used OS in the industry.
Plus if they hadn't let people freely pirate their OS, Linux would have eaten their lunch big time.