It seems like a majority of cases come from plants grown in fertilizer made from poop of humans or pigs, which keeps the cycle going. In Pre-agricultural times, never using fertilizer would imply intestinal worms would occur much more rarely in hunger gatherer tribes.