User Guide: Transaction fee
Transaction fees means charging fees at a couple of different levels to keep the blockchain networks running and to incentivize the people providing transaction validation services.
The existence of fees also lowers the risk of pointless or harmful transactions overwhelming cryptocurrency platforms. Any system for payments and data transfers without transaction fees would quickly be flooded by spam.
Transaction fee = Gas used × Gas Price
Example on BNB Smart Chain: