Very few people have ever paid for Windows in a way that was visible to them. The majority of Windows users have always just used the Windows that was pre-installed on a computer that they bought.
The cost of the Windows license was part of the overall laptop cost. So buying a new laptop with Windows installed means Microsoft gets some profit from that.