What gas actually pays for
Every transaction consumes computation and storage that the whole network must replay, so you pay the validators for it. The price floats with demand: the same swap can cost cents at 3am and several dollars during a launch. Layer 2 networks exist mostly to make that number small, and wallets let you wait for a cheaper moment.