I'm a straight male, but I'm gonna have a go at answering this one anyway.
When there are strong expectations on someone...whether those come from self, culture, family, religion, law, or some combination, then it's entirely possible for people to put on a mask, and carry on their lives as if they conform. This is a metaphorical mask, rather than a physical one, but hopefully you get what I mean.
For some people, than can be powerful to the point of self-delusion. They're not lying about their sexuality (or whatever it is they're hiding), they literally believe themselves to be something they are not. Removing that mental mask can be difficult for many reasons. And sometimes a physical action can help someone to see themselves in a new light. Or rather, to see themselves without that mental mask they've constructed.
Of course, I can't speak to a specific situation. I'm just talking from a psychological point of view. It's not necessarily the makeup defining him. It can be the makeup allowing him to change his perspective, and better align what he's seeing and what he's feeling.
Or not. I'm not going to pretend I can psycho-analyze someone over the internet. But that is at least a plausible explanation for your question.