Whatever the Chinese government is going to do, they sure as hell won't let their citizens enjoy any sort of freedom and privacy. If Bitcoin will be allowed, it's use will be tightly regulated, exchanges and all other services will be required to verify their customers, there will be measures to prevent capital flight and so on.
Bitcoin mining is not really related to freedom. In fact you could have a place where Bitcoin is banned but mining is allowed. The miners don't need to use the bitcoin they obtain, except to buy the local fiat to keep operations running. This produces a small but constant demand on that coin helping its position in the markets.
Its a form of export, like exporting electricity, without the wires. Even the countries that hate an uncontrolled coin, would welcome this, if they are smart enough to understand it. China wants its own State crypto coin, and i wouldn't be surprised they restrict bitcoin use to the point it could only be exchanged for the gov approved coin. Or they could still ban it altogether and the miners would need to exchange for an intermediary fiat abroad first.
So no, its not what some people think. If a government actually mentions Bitcoin by name, such as Japan, then yes you can give them some benefit of doubt, but the likes of China probably fear a coin that cannot be "controlled", or its rules changed by political decision at any point later. If Petro was sign, you can expect something just like that over there, not unlike other country backed initiatives, just repeating the same fiat fiasco in digital form.
If the Chinese would have banned mining, that income would have moved to the neighbors. In fact some of those neighbors are already doing it, so they would have loved that.
This is a time limited opportunity, bitcoin mining won't be profitable forever, each day that passes this window will close until its no longer profitable to mine at any price. They would be fools to lose this chance, and after the "bitcoin rush" passes, they are left with electricity production that could be sold or used to growth their economy anyway.