Twitter is not a private company, it's a publicly tradable company that can technically even fully be owned by the Chinese government itself through perfectly legally buying their shares on the open market.
Shares of a company being traded on different company's stock exchange (which is only regulated by the government, not operated by them) has nothing to do with whether free speech is enforced on their platform.