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

the bees in a hive for the secretion of the wax necessary for the construction of their combs. Moreover, many bees have to remain idle for many days during the process of secretion. A large store of honey is indispensable to support a large stock of bees during the winter; and the security of the hive is known mainly to depend on a large number of bees being supported.

Hence the saving of wax by largely saving honey, and the time consumed in collecting the honey, must be an important element of success any family of bees. Of course the success of the species may be dependent on the number of its enemies, or parasites, or on quite distinct causes, and so be altogether independent of the quantity of honey which the bees can collect. But let us suppose that this latter circumstance determined, as it probably often has