Who receives the money when a bitcoin is purchased? Where does the real money when someone buys a bitcoin?

I understand that if you buy from someone or an exchange you are paying them in real money but who gets the money for a newly mined bitcoin?
Newly mined bitcoins don't "cost" anything (I'm simplifying - there are costs such as electricity and the cost of the mining hardware).  

New bitcoins are simply discovered by the miner who is lucky enough to discover them.  The concept is similar to finding gold in the ground.  Once you find the gold, you take it to a market and sell it to someone who wants gold, and is willing to provide money in return for gold.  In the case of bitcoin, a miner runs a large number of mathematical equations searching for an answer that matches the difficulty requirements, and other technical criteria.  Once the answer is found, a block is produced containing the answer along with a number of new bitcoins.  The miner then either retains the new bitcoins, or trades them for some other currency.