Variation allows some individuals in a population to survive better in changing environments. Over time, natural selection favors individuals with advantageous traits, leading to evolutionary changes in the population.