Kathy,,this I do not know. I think (without internet searching a lot) in cows this is caused by both calves sharing the same placenta. Of course sometimes the egg splits giving you identical same sex twins and in other animals that are capable of having multiple births from one breeding,each individual must be in it;s own placenta. Such as puppies,rabbits,ect. So in animals that releases many eggs to be fertilized during their estrus cycle each fertilized egg would then have it's own placenta to grow in by itself.
In cattle with calves being the opposite sex and sharing the placenta all nutrients from the mom is shared between both calves just as everything each calf has, gets passed between them both from the umbilical cord. As the bull calf starts producing testerone it moves into the heifer twin calf and because the levels are high enough it renders her unable to reproduce. Once again a simple search of "freemartin" should explain exactly how this works but heifer calves born in twin situations where the other calf was a bull are fed out and slaughtered.