How it works
Every action on a blockchain uses computing work, and gas measures that work. A simple transfer needs little, a complex swap needs more. The fee is the gas used multiplied by the gas price, and the gas price rises when many people want to transact at once. On Ethereum the fee is paid in ETH, on Solana in SOL, on Tron in TRX. The fee goes to the network's validators and not to the exchange or wallet.
Example with numbers
A token transfer on Ethereum uses about 50,000 units of gas. At a gas price of 20 gwei that is 0.001 ETH, or $2 with ETH at $2,000. On a busy day at 100 gwei the same transfer costs $10. The same token sent on a cheaper network might cost a few cents.
The common mistake
Moving a small amount on an expensive network and losing a large share of it to the fee. Check the fee before confirming, pick the network to suit the size, and keep a little of the network's coin in the wallet, because a wallet with tokens and no gas coin cannot send anything.