Mimicry evolves because the species that are better at mimicking survive to produce more offspring than the species that are worse at mimicking. The genes of the better mimics become more common in the species. Over time, mimic species get closer to their models. This is the process of evolution by natural selection.