I’m not suggesting it be a constitutional requirement. But I prefer a conservative with military experience over a communist who hates America. Maybe it’s just me. :)
Neither Madison, nor Polk, nor Lincoln, nor Wilson, nor Roosevelt ever served in war. War as Clausewitz said, is politics by other means. The Presidency is a civilian position. Neither Grant nor Ike wore uniform while in office, nor afterwards, so far as I know. War is a political matter.