Even in exclusively breastfed babies, a mucoid stool can happen. It is caused by inflammation of the intestine either by bacterial infections (read more here) or in small children with cow milk protein sensitivity (eventhough exclusively breastfed), read more here.