Quoted By:
First things first, there is no proof homosexuality is strictly genetic. In my opinion it is rather a neurological imprint: a behavior that is acquired BUT is almost as rigid as a genetically programmed instinct and is very hard to override.
But assuming it was genetic, and therefore an evolutive adaptation, it still can be beneficial in a number of situations:
In the current state of overpopulation of our societies, a homosexual man through his work contributes economically to society while not burdening it with more people to sustain. In this case it would be an adaptation that despite being detrimental to his individual survival in the gene pool it helps the collective. Just like worker ants do not reproduce, but worker ants are still being bred, the homosexual man does not reproduce but can still be produced.
It can still be beneficial in times where females are scarce. By obtaining sexual release in this manner he does not increase the demand of females and makes society more peaceful because competition for females often turns violent. There is also the perk that when it is a widespread behavior the demand for girls falls so much they have much less leverage to extort men. That is why homosexuality is being propagandized in Western society as something rigid, something that you do once and you're "gay" for life, because this way men will not seek casual sexual release in this manner and will keep the market for sex with females oversaturated with "buyers", and this is where women obtain power in any society, by a restriction in the supply of sex.
If assumed that it is genetic, then it must be either a recessive trait or a programmed behavior that only is switched on given some conditions like scarcity of females, overpopulation, etc etc.
I don't believe it is genetic though. One is not born gay or ungay and stays like that for life. The brain acquires conditioned behaviors at specific stages of development that are very hard to overwrite once established.