If members of a population have a variety of traits, it is more likely that some of the members will have traits that let them survive and reproduce.
This diversity in traits increases the chances that at least some individuals within the population will possess advantageous traits that suit them to survive and reproduce in their specific environment.