As far as your example is concerned, because the Win7 you use is pirated, if you must buy a genuine system, if the computer is pre-installed with WIN7, the manufacturer has already paid this fee to Microsoft.
Because the research and development of functions such as network radio frequency is not done by Xiaomi, but for profit, patent fees need to be paid.