I'm aware that it is/was for checking for hernias, which is why I specifically stated that it is not for determination of sex, although I will admit I used gender incorrectly there.
But, just to fairly counter this, while it is technically not required here in the state anymore it is still common practice for sports physicals and is usually still done unless specifically requested otherwise.
I've already replied in another comment with my other points so I won't reiterate them here, but I will point out again that I'm not advocating for this, I'm in opposition of it and voted as such. However, pretending other viewpoints on this issue don't exist or are entirely invalid is why people are failing to understand why a state like Washington would vote rather overwhelmingly for this at all