Your cat can host internal parasites that your dog can acquire by eating the cat's feces.
Cats can carry roundworms, hookworms, whipworms and tapeworms, and their eggs may wind up in the cats' feces.
When your dog eats your cat's poop, he ingests the worm's eggs and becomes infected.