The bitcoin network compensates miners for their effort by releasing bitcoin to those who contribute the needed computational power. This comes in the form of both newly issued coin and from the transaction fees included in the transactions you validate when mining.
In traditional fiat money systems, governments simply print more money when they need to. But in bitcoin, money isn’t printed at all – it is discovered. Computers around the world ‘mine’ for coins by competing with each other.