Beacause china won the opium war . and the westerns had military tech . Also china liked expanding. Lastly beacause china requested encomic assitance from the west.
Hopefully this helps. Try it.
https://www.britannica.com/place/Orinoco-River
Socialism does not work because it is not consistent with fundamental principles of human behavior. The failure of socialism in countries around the world can be traced to one critical defect: it is a system that ignores incentives. Under socialism, incentives either play a minimal role or are ignored totally.