Salmon lay hundreds of eggs because the odds of any single egg surviving to adulthood are very low.
Salmon eggs and young fry face constant threats. They are eaten by birds, fish, and insects. Currents can sweep eggs away, sediment can bury them, and parasites or disease can destroy entire broods. Young salmon also compete fiercely with one another for food and space.
Natural selection ensures that only a small percentage survive. By producing hundreds of eggs, salmon increase the statistical likelihood that at least a few offspring will reach maturity and continue the species. This high-egg strategy is common among fish and other animals with high juvenile mortality.