Why aren’t female gymnasts allowed to wear shorts or pants but male gymnasts are?

ALLGYMNASTICS... ALL THE TIME!