Genes "want" to survive. Similar or identical genes are carried by related individuals. Anything that helps the genes survive their environment for another generation have an evolutionary bias toward continuing.
You noticed the part in that article about a potential benefit for female fertility in genes that were associated with homosexuality?
Evolution doesn't care if an individual specimen doesn't reproduce. The species can benefit even if the individual has no offspring.
HTH.
Cheers,
Scott.