Dogs can get worms from digging in dirt, mosquito bites, and even from their mom (both in the womb and through nursing).