It's based on Darwin's theory of natural selection. Animals which have characteristics most suited to the environment are more likely to survive and reproduce. Animals poorly suited to the environment will be at a disadvantage when getting food and other vital resources they need to survive. Therefore they are more likely to die and not get a chance to reproduce.