Evolution over millions of years, This could happen due to selection pressures like predators, change in environments for example the industrial revolution and how black moths were more in favor than white moths because the could blend in with the soot, natural selection also can cause this as well as bottleneck effect and genetic drift.