You would have to see the medical diagrams of 5 ard to understand how this happen. Look female at birth. Baby delivered. Doc says..you have a girl.
How convenient.
Look up testicular feminization. A genetic defect that lacks an enzyme (5 alpha reductase) that doesn’t allow the fetus to develop male parts but is XY. Typically have android pelvis and is estimated to be very prevalent in high end fashion models (-10%) and in a well known movie actress