You sell the search engine how much you are willing to pay each time someone searches for a keyword and if they click on your ad you pay the search engine and you get a visitor to your site.
In short, flipperman is correct. It will make money for the person who clicks on the adds, and in turn, the advertiser will hopefully convert the clicks they get into sales