Because they can't stop it. The best they can hope for is to control the identities of whom is trading in Bitcoin, so they maintain some semblance of control. By legalizing it, they pull many into using exchanges and providing identity. At least they get more information about what is going on.
Otherwise they push it into the underground economy that they can't control and they can't get complete information about.
As I made clear upthread, the biggest weakness of Bitcoin is that if most of the users are not anonymous, then anonymity is effectively lost for everyone. Thus getting most users to transact through an exchange and bank account is the most effective strategy for China's elite.
Why is China ground zero for mining when the ROI is not greater than holding BTC itself?
Because it is the way to get BTC without giving your identity and to side-step capital controls. You can sell these coins privately at a premium to those who need to circumvent capital controls. An underground economy develops.
Now imagine a CPU-only altcoin comes along with very strong anonymity. Checkmate to China's elite. Very good for China's masses.
It is coming soon.