People repeat behaviour that leads to flooding their brains with pleasurable chemicals. The short-term reward loop acts over hours to years and the long-term reproductive success loop over generations.
People of mediocre ability sometimes achieve outstanding success because they don't know when to quit. Most men succeed because they are determined to.