Don’t know about the military, but we’ve pretty much figured out that HR is the Govt camel nose under the tent.
Corporations, like most large institutions, are annexes of the govt.
HA...that is why I quit working over 20 years ago...felt TOO much like I was working for the government...and I was in HR in very well respected High Tech companies!