Because of quirks of their haplodiploid genetics, female workers share more genes with their sisters than with their own offspring, so it makes competitive sense for them to sacrifice their own fecundity to help
their colony queen mother produce more sisters.