Just in case you're referring to Zhang Shan winning Gold in 1992: the decision to bar women from competing in the 1996 Olympics was made before Zhang had won her medal. [0]
> Until men with genetic anomalies are equally banned from sports (for example, being an outlier in height for basketball)
We don't have height categories, we have categories based on sex. We have categories based on sex because there are physical difference caused by difference in sex that lead to advantages in sports competitions. As such, people who have physical advantages over others based on their difference in sex (e.g. going through male puberty vs. female puberty) shouldn't be able to compete in the category created to protect participants from precisely those differences.
[0] https://en.wikipedia.org/wiki/Zhang_Shan#cite_ref-nyt_4-0