For example many things I search trough duckduckgo later that day showed up in my twitter/x.com algorithmic feed, coincidence ? don't think so.
Alternatively, there was a fallacy of human mind(forgot the name), where if you think of something, your brain will start focusing on the random occurrences of that things in all places. So, those ads were always there, your brain just started focusing suddenly on those as you were thinking of those things.
Note: Not affiliated with DDG.
> When you view Twitter content such as embedded Tweets, buttons, or timelines integrated into other websites using Twitter for Websites, Twitter may receive information, including the web page you visited, your IP address, browser type, operating system, and cookie information. (https://developer.x.com/en/docs/twitter-for-websites/privacy)
So, if you visit a news paper that have embedded twitter post in it, twitter might know you passed by this website.