I think the countries' governments are afraid the banks will no longer apply to society and bitcoin cannot be controlled by government. If bitcoin might replace the banks, the currency in that country can be worthless. With all these reasons, the government is illegalizing bitcoin. Also due to bitcoin was often used for misuse of transactions and payments, many countries may feel that bitcoin is illegal.