I'm sorry, but that is not how email address are spammed in bulk.
The data-source are the enormous data breach that are more and more frequent. There is more intensive to collect more information on someone you already know something about than spamming an email you don't even know if it's a valid one.
The spam can also be very more effective as it present itself with personal information about the spammed.
If you're only passing the address in private to some service, you can just use [some-string-unique-to-that-service]@yourdomain.com. Or, more classically, plus addressing to do the same. Then you just block that recipient.
That solution doesn't apply to the use case in the article.
The OP put those addresses on that web page, and only on that web page. Some addresses received spam.
Edit: that’s not to deny that big data leaks are a serious problem