> For Bitcoin, the most popular one, on the order of 100.000.000.000.000.000.000 of hashes get calculated to mine a single block, multiple trillion per second. Within ten minutes, only a single one of those 100.000.000.000.000.000.000 hashes is actually used, depending entirely on luck. The rest are thrown away entirely. They do not form part of the final hash or anything else, the energy spent on them is lost.
All of those hashes and the energy required to generate them represent work that would need to be redone (along with all subsequent work) by an attacker in order to double-spend the transactions in that block. It's the most efficient way to use energy for security that there is.