Including China people, foreigners and stateless people. One of the reasons for prohibiting carrying is to prevent smuggling, money laundering and other criminal acts; Another reason is to prevent the loss of foreign exchange, because China has strict foreign exchange control.
If you want to spend money abroad, you can remit money or open a global account first. Nowadays, large commercial banks generally have global exchange business.
It is not clear whether other countries have similar regulations. For the above reasons, there should be.