The concept and the word you are looking for is 'respect.'
The military and other paramilitary callings teach and embed that. The general, unwashed masses occasionally, but seldom really learn it.
You're actually 'onto something' . . . you just misfired a little . . . because 'respect' is a large part of discipline and self-discipline.
Attention to detail may be a side-effect but can be learned even while having no respect for others or for oneself. And, some people who exhibit great respect for others may still not possess the ability to devote attention to details.
In those contexts, it's actually quite obvious, as you said.