I did my thesis on this topic, more or less. Seriously! Animals and people have co-evolved right along with their worms. Removing worms has a price to the host. This is called the hygiene hypothesis, that people and animals who live in a super clean, infection-free world don't develop defenses and may develop problems later in life when exposed.Just out of curiosity...
Chicken keepers here where I live will tell you most chickens carry some worms.
Problems arise when the worm load is at a certain level. Before this the chickens are healthy and the worm load is kept manageable through normal eating. These are free range chickens so this makes a difference. Before we (humans) started testing for worms and trying to eliminate them chickens seemed to have survived; I assume with some worms.
Again, chicken keepers here will tell you that free range chickens eat things that 'discourage' excessive worm loads. Nobody is quite sure what it is they eat that does this.
So, what is the critical worm load for a chicken for each particular worm?
To keep it topical, it seems to be a bit like Covid; lots may carry it while few are sick.
What the economic threshold for parasites in animals is is a very good question.