Earlier quoted context omitted.
The point is that non-reproductive insects don't have specific set of genes that make them non-reproductive - it is not an inheritable trait. If it was, then it would have evolved into extinction.
Of course they do (have genes that make them non-reproductive) and of course it hasn't (evolved out of extinction). There is nothing about a possible genetic basis (whether complex and indirect or simple and direct) for an individuals non-reproductiveness that implies it has to result in extiguishing itself. Humans are social enough that genetics which benefit the group at the expense of the individual are perfectly…
> If a gene copy confers a benefit B on another vehicle at cost C to its own vehicle, its costly action is strategically beneficial if p_B > C, where p is the probability that a copy of the gene is present in the vehicle that benefits. Actions with substantial costs therefore require significant values of p. Two kinds of factors ensure high values of p: relatedness (kinship) and recognition (green beards).
The Selfish Gene is probably the most famous way of looking at that concept. https://en.wikipedia.org/wiki/Gene-centered_view_of_evolutio...