Person McPersonson answered Evolution.These changes occur as a matter of a sort of genetic "trial and error" in order to make said species better suited for the conditions in which it lives.