Every time money moves on a blockchain, computers around the world do a little work to record it. Gas is the small fee that pays them.