Pigs root for earthworms in soil, and ingest the Metastrongylus larvae which are infesting the earthworms.
Pigs dig through the soil and eat earthworms, which carry Metastrongylus larvae. These larvae infect the earthworms.