Genes gain advantages over each other in part by keeping their slaves alive and healthy, just as human slave owners did. Slave owners were not working for the benefit of their workforces, nor for the benefit of individual slaves: it was solely to achieve their own objectives that they fed and housed their slaves, and indeed forced them to reproduce. Genes do much the same thing.