Gender dismorphia?

Okay so I honestly want to understand. I know that it's a psychological condition and serious due to the anxiety and depression that comes with believing you are the wrong gender... But why is the treatment becoming the gender that you think you should be?
.
With pretty much every other psychological thing, people are medicated to try to go back to their proper and biological "factory settings" if you will. Why aren't people with this disorder be treated any differently?
I'm not trying to be negative in any way, I just honestly have never understood this.
EDIT: thank you for all your responses. I've been wanting to learn about it and will research further. Thank you for being very patient with me.

Glow Resources

Let’s Glow

Glow is here for you on your path to pregnancy

Glow helps you navigate your fertility journey with smart tools, personalized insights, and guidance from medical experts who understand what matters most.

25+ million

Users

4.8 stars

200k+ app ratings

20+

Medical advisors