There are some very very rare cases where it is not possible visually to tell if the baby is a boy or a girl. We have DNA testing nowadays so the exact sex can be determined. When such a child gets to puberty, that child will not be surprised.
From the Bee:
https://youtu.be/5mnQTzhVgl8
Define “woman.”