It is similar to the transaction fee for crypto trading. Every transaction should be verified by a group of miners and gas fees are the rewards for the miners help. The miners can be treated as the middleman which is quite similar to the bank to confirm this transaction is valid in a decentralised way.