Courage was McCain's lifeline in the dark days of his captivity, had he lost courage, his life would have shortly followed thereafter. This was a constant theme in this book.
John McCain was taught by his parents to value his honor above all else - even when he was in trouble he accepted the punishment honorably. While a POW keeping his honor helped him survive by keeping him determined.