Darwin theorized that animals (such as finches) would mate with the most suitable mate to produced offspring worthy of in-taking the environment it was born unto better than past generations. So, yeah, it's the animal's instincts that lead it to better survival.