Why Eating Earthworms is Dangerous for Dogs. When humans eat earthworms, they remove the soil from the intestinal tract of the worm (which is basically the whole worm) and then cook it well. Dogs, of course, like their earthworms raw and straight from the ground. In short, although rare, dogs can be infected with the giant kidney worm (Dioctopyma renale), from