Hong Kong and Macau are weird in that they’re part of China but have a different government and separate economic system. They’re both former European colonies that were “given” back relatively recently. I don’t see the main part of China on the graph, but maybe I just missed it.
The Windows is not free. The OEMs pay a license fee and that cost is passed on to people buying those computers.