The Platypus and Echidna are among the few mammals that lay eggs and this restricts the mother to remaining with her offspring.
The mammals began to favour milk over egg yolk as a way to nourish their young. And that is because milk has one key advantage. It’s on tap, and that means that none of it need go to waste.