I think it was part of the WWII mind set. Roddenberry and others were vets and no doubt drew upon that when writing Kirk. Citizens turned soldiers with a healthy disregard for authority seems to common theme in WWII set film and television. McHale's Navy, Hogans Heroes and Kelly's Heroes come to mind. MASH, though set in the Korean War, is another one.