First of all, I apologize for the long overdue reply.
Anyway, to address your first comment, my guess would be those people thought that they might be gay/bi and then realized they actually weren't.
In terms of genetics, while currently no "gay gene" has been identified, there are studies that show that there is substantial evidence for a genetic basis of homosexuality.
https://www.sciencedirect.com/science/article/pii/B9780128002223000085?via%3Dihub
https://www.discovermagazine.com/planet-earth/study-of-gay-brothers-suggests-genetic-basis-of-male-homosexuality
https://www.scientificamerican.com/article/cross-cultural-evidence-for-the-genetics-of-homosexuality/
https://www.sciencemag.org/news/2018/10/giant-study-links-dna-variants-same-sex-behavior
https://www.sciencenews.org/article/genetics-dna-homosexuality-gay-orientation-attractiveness-straight
For the record, yes, I am aware that homosexuality is not the only choice people partake in that can lead to them facing the repercussions I mentioned, but when people make choices knowing that they will be subject to those repercussions, they make those choices anyway because they have a good reason for doing so.
For example, if someone decides to convert from Christianity to atheism, it's usually because they think that atheism checks out more logically than Christianity and they believe that the idea of God existing doesn't make logical sense. In other words, they make these choices for logical reasons.
What logical reason would one have to choose to be attracted to the same sex when they can just as easily choose to be attracted to the opposite sex? What would they get out of being a homosexual? How would they benefit in any way?