Original: Eggs are usually laid according to the substrate the larva will feed on upon hatching.
Simplified: A larva comes out when an egg hatches.