Question

My baby is 3 days old and has been having an increased number of bowel movements for several days. I went for a test today, and the doctor said it’s enteritis and prescribed some medication. I am breastfeeding exclusively, and I want to know how my baby could have developed enteritis? Are the medications prescribed by the doctor suitable?