It’s the miners’ job to confirm those transactions, and write them into a general ledger. They are then rewarded with "mined" Cryptocurrencies for the currency transaction they confirmed.
In traditional fiat money systems, governments simply print more money when they need to. But in Cryptocurrency, money isn’t printed at all – it is discovered. Computers around the world ‘mine’ for coins by competing with each other.