Why make it illegal if you could just regulate it and get taxes from people who make money with Bitcoin?
That's a whole lot of revenue for the government that they would be missing out on if made illegal.
But Bitcoin is actually also illegal in a couple of countries:
https://atozforex.com/news/top-countries-where-bitcoin-is-illegal/