On The Origin of Species by Charles Darwin Chapter 8 Page 86

been long and carefully selected to the right degree, always produce a large proportion of seedlings bearing double and quite sterile flowers, but they likewise yield some single and fertile plants. These latter, by which alone the variety can be propagated, may be compared with the fertile male and female ants, and the double sterile plants with the neuters of the same community. As with the varieties of the stock, so with social insects, selection has been applied to the family, and not to the individual, for the sake of gaining a serviceable end. Hence, we may conclude that slight modifications of structure or of instinct, correlated with the sterile condition of certain members of the community, have proved advantageous; consequently the fertile males and females have flourished, and transmitted to their fertile offspring a tendency to produce sterile members with the same modifications.