Lactose intolerance serves as a mechanism in mammals to encourage older siblings to cease nursing once younger siblings arrive, facilitating the transition.