You get paid by whatever advertising program you have set up. For example, they give you 6 and keep 4 of every 10 impressions from google ad sense. You get paid the full amount for the clicks you get while your ads are being displayed.
In short, you share the revenue with hubpages. Thats how they pay to host the content, optimise the site etc.