Most religious rules stem from common sense. Most eating restrictions in religions for example mention animals, who easily go bad in the region, the religion was based on
"We should gently pat the baby's back and let them expel the air in their stomach… We should hold the back of a baby's head when we carry them… We should breastfeed…"