they are saying that the body produced to to fight parasites like worms. these were a big problem for most of evolutionary history. With modern living standards, our immune systems don't encounter many parasites so they get "bored" and over react to harmless things like food. Evolution hasn't had time to adjust to the new living standards since its only been a few generations.
More likely the worms just get shredded and are part of the food now
Hygiene hypothesis