Realpolitik considerations mostly:
-
China has little arable land and limited oil/natural gas
-
China has a lot of iron ore but none of it is high quality (lots of prospecting and refining needed, much easier and cheaper to buy from )
-
China relies on international shipping and trade and is vulnerable to sanctions and blockades in this aspect moreso than say Russia who has all this stuff within their own borders.
-
The Belt and Road Initiative is still in development, and not sufficient to replace shipping in case of blockade.
Essentially, China has to be milquetoast liberals on the international stage because if they did international relations on a purely ideological framework they would be a pariah state again and everyone in China would suffer for it. Not saying they can't do better, there are a lot of actual liberals in the party after all, but if China pressed the communism button today on its foreign policy China would be a lot poorer and we'd probably be a lot closer to nuclear war than we already are.
Every time I talk to Indian colleagues it's always about potential. They're always saying India has so much potential, but something is keeping them back. So many brilliant minds hampered by lack of infrastructure and development, imagine where India would be if it was socialist and spent the last 70 years developing infrastructure and logistics at the intensity that China did.