Our sweet tooth helped our ancestors select ripe fruit in a world where food was scarce.