In some sports there are weight classes, because being a certain weight gives you an inherent biological advantage on average over people of a different weight. The weight classes allow anyone to find well-matched competition regardless of their biology.
Women’s sports vs Men’s sports is a similar idea. Separate people by some biological classification that’s often tied on average to an advantage at the sport, so that everybody has the chance to play against someone of a similar baseline.
That division doesn’t have to exclude trans people, but it does mean that a line gets drawn somewhere. And yes, that line might include some cis people with a genetic abnormality getting excluded as well, and some cis men with a genetic abnormality might be included.
If you want to draw the divisions by something like muscle mass or testosterone levels instead of trying to define sex and gender clearly enough for this purpose, that would probably be easier, although “low testosterone sports” doesn’t have the same marketability as “women’s sports” lol.