Why Is the Fee Still Consumed If the Transaction Fails Due to Gas Limit?
The fee is consumed because the computational work was still performed by the validator, even though the transaction did not successfully complete its intended function. The validator expended resources (time, memory, processing power) to execute the smart contract logic until the gas limit was hit.
The fee compensates for this expended effort.