Welcome to WebmasterWorld Guest from 184.108.40.206
They get this for:-
hosting the ads
sorting out which ads to show
collecting the money from the advertiser
paying the publisher
Obviously if you arrange ads yourself on a site you get more of the take. Generally % payouts vary with Google from ~ 50% up to 100% (although this is extremely rare). It all depends on how much your site costs Google.