Why the assumption that one profession/vocation always overrides the other?
Because under law, militaries and occasionally law enforcement are the ones that are tasked with the defence of a country.
Whereas there are no legal restrictions over who can do most of the other things that Starfleet does.