Personally, my academic achievement was motivated by a desire to get out of the environment where I grew up (where I was very much not out). I’ve met others with the same story.
This was my story as well, though I was out at the age of 13. Homophobia, for better or worse, has been a major driving force in my life. PhD student now. Also working toward second masters.