Well, animals follow this to some degree as well. They find mates and have their offspring and thus pass on their genes.
As for homosexuals, i dont know, i guess there's an exception to every rule. Different genotypes? Perhaps mankind has evolve and now doesn't deem having offspring as important? Im pretty clueless :P