You search for X, they show adverts related to X.
The extra targeting stuff probably increases their revenue a few %.