In utero, the reproductive organs develop and differentiate earlier than the brain does. When the brain later develops in ways that typically differentiate between male and female, it seems to be based on whether or not the androgens are present and received.