My bet would be something to do with temperature or possibly hormonal? maybe something to do with keeping sexes balanced in the wild based off observed hormone levels in the environment during their spawning season that determines how many eggs develop male vs female for the next generation, would be hard to control in captive breeding with our tank setups, filtration and water changes. Ive heard of this happening with some reptile and fish species