Sweet-smelling stools may indicate an infection with the Clostridioides difficile bacteria, which can occur after recent antibiotic use. Breastfeeding can also cause sweet-smelling stools in babies.