Jason Peters was always a freak athletically, but he could have easily fallen through the cracks because of his lack of preparation (in college) and questionable motivations, focus (which became clear when Smithers started throwing money at below average line mates).
Peters needed to land on a team that was desperate enough to keep him for his ability and despite of how incredibly raw he was. He also needed a great teacher to coach him up from near-zero to the NFL quickly. The Bills were the perfect team for him; they've had trouble putting together an OL for over a decade and are continuously desperate to find any talent at OL; and, they had Jim McNally, one of the best OL coaches in the sport. Fortunately for Jason, he is once again being coached by one of the great OL coaches in the NFL, so maybe he can regain his focus and reach his potential. (Though many here hope he fails.)