maybe in their country there are many who mine bitcoin, the government bans botcoins for a while maybe this only lasts temporarily as long as electricity repairs run if electricity is normal then ban it and withdraw it again.
It is true that there is so many people who mines crypto in Iran almost 5% of miners came from them, but the electricity consumption could be critical since the fossil fuels scarcity are pretty rough the governments really have no choice but to take actions and the fact that some can illegally manipulate electricity and use it for mining is affecting their electricity circulation meaning there would always be an outage in some place if there are a lot of miners in one place.
Another option is obviously to sell their mining rigs and make the exit.
This is a good option but I think police confiscates some rigs and probably give back after the problem being solved.