I get what you are talking about, but it's important to note that militaries haven't always been as formal as they are today. Especially during the relatively peaceful medieval era, most countries relied on militias or mercenaries and not standing armies.