Long before the Olympic medals, Michael Phelps learned a powerful lesson that would shape the way he approached competition.