Lots of ways this data flow could happen, at least in the US. Happy to go through specific details I have seen if you want to share more about this, but two high level points
1. Remember that when you purchase something, the data about the purchase is BOTH yours AND the entity from whom you made the purchase. Most of those entities have data sharing agreements of various kinds for all sorts of legitimate business reasons
2. It isn't google who knows about the purchase, and even the advertiser doesn't "know" you made a purchase. Advertising is zillions of two sided marketplaces, with an enormous ecosystem of data packagers and conveyers and linkers, with lots of concern about recency and freshness of data. Your purchase landed some key about you in a bucket that was mixed and repackaged with many other keys that the advertiser knows as "keys recently interested in Voltaren." Some of those keys are related to people who bought it, or who searched for it, or more indirectly who lingered while reading a page with an ad for it...and in most cases are very short lived. So give it a few weeks and many of those buckets of keys will have been completely remade.