It’s literally the most logical and ethical rationale that could be achieved. The ethical and logical rationale is that sexual dimorphism exists, and we understand it quite succinctly.
They are separated by sex, because people are separated by sex characteristics.
Since Gender no longer refers to sex, it only refers to perceived place in society, it has no place being used as a metric for sports.