Sometimes the mucus is jelly-like in appearance. Babies who are breastfed may be more likely to have mucus in their poop because their stool passes through their intestines relatively quickly. However, sometimes there are medical conditions that can cause mucus in stool, including infections, allergies, and more.