Gas fees are payments from senders to compensate for the computing energy required to process and validate transactions on the Ethereum blockchain. Any other network works in exactly the same way.