The energy in mining is not being wasted, it's being converted into something of perceived value.
The real waste of energy, one could argue is pornography, which hogs around 30% of the internet, with little value output.
Imagine replacing those servers for something more productive for humanity as a whole.