Because it was stupid to want to take it. There was no strong scientific evidence for it. Less observant people would then proceed to not get vaccinated. Ridicule is one effective way for society to push smarter choices when the majority of people know you are being an idiot. Vaccines are HIGHLY effective and ivermectine does nothing, and even at that point we knew there was about a 99% chance it did nothing