Intelligent advertising.

You’ve probably noticed in web pages that certain words or certain pages have advertising that is “relevant” to the content of the page. This can be done automatically by software that “reads” the content, matches words to its database of adverts then either creates links in the body text or embeds advertisements in the side bar, or header or footer. Have a wee look at this one I found on how stuff works.