I look at it this way: the aliens stored the jars of mass destruction in that manner. Then the alien queens, when they formed, had a sort of genetic memory of that organizational strategy and laid their eggs in the same pattern. You don't need the literal jars to become literal eggs.