How do Bitcoin and cryptocurrency miners get paid for solving a block?
When the transaction pool gets close to the maximum number of transactions, the miner adds a reward to himself in the last transaction. If the miner solves the block, the reward is conjured out of thin air.
It's literally money out of nothing!