The official line is that its by request of their spouses so that they can have another kid with their late soldier (usually) partner. I don't think any other country has a sperm extraction battalion, I think this is what happens when you give an ethnostate infinity money.
Makes much more sense to build an entire squad of cummandos to do emergency cum retrieval missions in a warzone than to... have the soldier freeze their sperm before deploying