Here you can tell how these critters eventually come to match the color of the soil where they live. Many color variations occur in lots of reptiles geographically for the same reason. The individuals in the population which do not closely match the soil color stand out more and become prey items for predators - so they don't pass on their genes for those unmatching colors. Over time this leaves the population with only soil-color-matching individuals in the gene pool.