These behaviors ensure that individuals with desirable traits are more likely to reproduce and pass on their genes.