The value lies not in the energy but in its utility to facilitate transfers without the expressed permission of some authority.
The energy isnt wasted though, the safety of the trustless transaction is proportional to the expended energy. While not the source of value, it is a necessity, not a waste.