From a citizen's perspective they are effectively separate in name only, with slightly different legal authorities underpinning their actions. That one is organized under the DoD and the other the Executive matters little.
It was clearly a simple mistake. The intended distinction was between the Department of Defense and the Department of State, which was once a meaningful distinction.