Developing countries do have a higher prevalence of worms[1], as Scott Alexander discusses in his post[2] on the subject.
[1] https://journals.sagepub.com/doi/full/10.1177/20587392209599...
[2] https://astralcodexten.substack.com/p/ivermectin-much-more-t...