Transitioning to the other gender is really not a mental illness.
Seeing someone identity as a female despite being physically male (or someone identity as male despite being physically female) may seem weird at first. But it makes them feel good. And, no one is being hurt in the process.