It's most common that people who experience gender dysphoria are experiencing the serious psychological issues that go along with it. The transition doesn't magically make that go away, but studies show that the surgery improves the psychological state of the patient.