I think one way for the government to legalize bitcoin is to give them control over it. If bitcoin becomes centralized it will make it easier for most countries to accept it. I believe they have seen bitcoin technology and they are learning how to combine it in their country. Also, some governments only want to regulate bitcoin so that it can actually function.