The frequency of non-beneficial traits in a population tends to decrease overtime due to natural selection. These traits do not provide any advantage to an organism in its environment, and may even be detrimental to its survival or reproduction.
Organisms with non-beneficial traits may be less likely to survive and reproduce, so their genes are less likely to be passed on to the next generation.