well, actually some reasons may also influence the legality of Bitcoin in certain countries. They may also have diffilcut or complicated rules about currency and Bitcoin cannot be ruled. So, they ban Bitcoin.
However, in some countries, Bitcoin is not banned at all.
For example in my country Indonesia. Bitcoin and crypto are legal, but they are only as digital assets or commodities. For currency or payment? No, it is still illegal.