Rhesus monkeys, for instance, tend to produce more calcium in the milk they feed to daughters who inherit social status from their mothers.

"It could be adaptive in that it allows mothers to give more milk to daughters which is going to accelerate their develop and allow them to begin reproducing at early ages," says Hinde.

Reasons unclear

Males don't need to reach sexual maturity as quickly as females because the only limit on how often they reproduce is how many females they can win over.

The females also nurse for longer than male monkeys, who spend more time playing off on their own and thus need more energetically dense milk.

It's not yet clear why human mothers produce such different milk for their babies, says Hinde.

There is evidence, however, that the stage is set while the baby is still in utero.

Hinde co-authored a study published last week in PLOS One that showed that the sex of the foetus influences the milk production of cows long after they are separated from their calves  typically within hours of the birth.

The study of 1.49 million cows found that, over the course of two 305-day lactation periods, they produced an average of 445 kilograms more milk when they had female calves than when they had males.

They also found no difference in the protein or fat content of the milk produced for heifers than for bulls.

Improving milk formula

Much remains to be understood about how breast milk impacts infant development in humans, says Hinde.

Knowing more could help improve the baby milk formulas sold to mothers who are unable or unwilling to nurse their infants, she says.

"While the food aspects of milk to some extent are replicated in formula, the immuno factors and medicine of milk are not and the hormonal signals are not," she says.

Getting a better understanding of how milk is personalised for specific infants will also help hospitals find better matches for breast milk donated to help nourish sick and premature infants in neo natal units, she adds.