Genes do not "care" for individual organisms. If they did we would be immortal. Jared Diamond argued that the presence of homosexual uncles/aunts is the same kind of an advantage as the presence of no-longer-breeding grandparents.
> such a trait would be extremely uncommon.
Homosexuality is pretty rare, isn't it?