One female roundworm lays thousands of eggs a day which are excreted in feces onto and into the soil. (Of course chickens will have many more female worms internally lol.)
Chickens constantly peck the soil and in doing so pick up eggs and swallow them. If birds are penned, they'll will need to...