It creates ('faith based') money, therefor people are willing to give up resources.
All that effort helps to build a trust in the network.
The perception of value of a BTC will grow, when you see how much it costs you to generate a new set of 50 BTC.
All in all: it isn't a waste of energy; not more than the energy/time needed to keep enough trust in the value of bank accounts in EUR or USD (who have the rather large 'advantage' that you can/must pay your tax with them).