'by some necessity of nerve' sounds to me like 'by an undefinable need to be courageous'. It's quite a curious turn of phrase, and I don't understand exactly how it is intended to describe the two men. I don't believe I've ever run across the expression before.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.