The longer the poop sits in the intestine, the smellier it gets because of bacteria. Some babies also face other problems such as allergy or intolerance of gluten or milk, making their stool smell.