modem ad technology can do it... your mastercard and visa purchase behavior, for example, is available for purchase. That data can be merged with other purchased data, and things like aggregated browsing behavior. This is all done to serve people who may be in my target audience with (semi) personalized ads. The ad may not appeal to you, so it gets classified as spam.