What you linked says "On the other hand, kin selection is accepted as an explanation of altruistic behavior.[11]"
So, an extended family with a few homosexual kin might have greater reproductive success with their offspring having more caretakers.
https://en.wikipedia.org/wiki/Group_selection#Good_of_the_sp...
I personally think the benefit of the community is definitely one of the factors. And I think the evolutionists have it wrong. But why does the public just accept whatever they say? It hardly sounds like a settled theory.