No, it's because competition between miners necessarily drives the hash rate and thus energy usage to scale up with the value of mining rewards and transaction fees.
But if there aren't more transaction (as number of transactions), what happens when the hash rate increases? They hash incomplete blocks of transactions? Or does the same block gets confirmed by a greater number of miners?
The second answer, although there is only one "winner" of each block's competition, so it's only one miner/mining pool which ends up confirming a transaction. It's controlled by a hardness parameter that's readjusted automatically in a regular fashion.
Miners tend to increase their hashrate because that's how they compete for block rewards. However, the electrical energy a miner spends on finding blocks should not be more than the value of the block rewards, otherwise they would operate at a loss. This provides a ceiling for the energy expenditure.
Therefore, if the price of Bitcoin doubles, miners can afford to burn twice as much electricity. (Roughly. This is a simplification of course.)
Because the chain of transactions with the most accumulated waste is chosen as the "correct" chain. In order to double-spend, you have to cause a different chain to be the "correct" chain, so you'll have to waste even more energy than has been wasted by everybody else, over whatever span of time you're trying to roll back. Thus the more waste, the more secure the chain.
Proof of stake is a newer way of coming to consensus on one correct chain. It took people a while to figure out how to do it securely and efficiently.
Okay, so the chain of transactions that is regarded as correct is the one that has been more expensive to create. Instead of wasting energy, the same result could be achieved by wasting other stuff, such as bitcoins themselves, for instance?
Sure. In fact, that's almost how Ethereum's proof-of-stake works, except it has a protocol that comes to consensus without wasting anything as long as people follow the rules, and only destroys stake when someone provably breaks the rules.