That meant you had a gut parasite.
Look up Herxheimer Reaction. It's a good thing. Engage a gut-friendly regimen for 30 days. Depending on the parasite and your age, in the weeks following you may notice (or past tense, if that's the case here) a significant improvement in health.
Ivermectin gives everyone diarrhea with too high a dose.