Sometimes, when babies start eating solid food, they find it difficult to digest, which may lead to constipation or diarrhea. These conditions make pooping difficult for babies, causing them to cry (6).