evolution
As animals evolve over hundreds of thousands of years, the traits or characteristics that help them survive become dominant over the undesirable trait that provides no benefit to them. Traits are passed down from parent to offspring, so that is how the desirable traits stay in a population.