Many websites use context-related advertising where an advertising service, such as Google, scans the contents of the website, reads your web-browser's cookies and so on, and posts adverts that it has determined that you may be interested in or related to on the website that you are visiting.
Sometimes, the results can raise an eyebrow...
This post may include affiliate links.