China is not playing by the same rules that the US or any other western country is. They don't believe in free trade, they have heavy restrictions on imports and exports out of the country, money transfers to other countries, and foreign investments, they effectively block non-Chinese internet services, and of course all of this has astounding levels of government subsidies.