> What it comes down to is just punishing gender non-conforming behavior.
Not really though, it's perfectly possible to be gender non-conforming without undergoing drastic medical procedures. In particular, all the women and men who reject the societal impositions of femininity and masculinity, while still being comfortable with their bodies.