A miner is someone who tries to create blocks to add to the blockchain (the term also refers to a piece of software that does this). Miners are rewarded for their work by the Bitcoin protocol, which automatically assigns new bitcoins to the miner who creates a valid block. This is how all bitcoins come into existence.