Are you saying the state should dictate what you can do with the energy you buy?
That's not because the law specifically says you can't use electricity to do those things (it's about murder and illegal drug production and distribution), but the end result is the same.
Banning Bitcoin or Bitcoin mining need not be a specific energy-use law, even if that might be the purpose behind such a law.