In fact, that’s how Google started out with AdSense as well: It was called “content targeting advertising”, because Google scanned your webpage and then served ads that related to the content of your webpage.
I don’t know what happened along the road to lead us to the current tracking and spying mess.