I will have to guess as to your question. Many soldiers pay with their lives on the field of battle. This use of "pay" is almost metaphorical, meaning that they lost their lives.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.