During the birthing and nursing processes, puppies and kittens ingest bacteria that make themselves at home in the intestines. Some of these bacteria are beneficial to the pet, and some are potentially harmful. The beneficial bacteria help digest food, produce energy for the cells lining the digestive tract, and help with immune function. They also help keep the potentially harmful bacteria to a minimum.