As a defense agency, NSA operates under the authority of the Department of Defense. As a member of the Intelligence Community, NSA also operates under the Office of the Director of National Intelligence. NSA/CSS activities are subject to strict scrutiny and oversight both from the outside and from within."
It’s not just NSA next to Ft Meade… there is an MI unit there as well.
https://www.inscom.army.mil/msc/780mib/contact.html
It is military intelligence as I'm sure you know.
"Does NSA count as military?
As a defense agency, NSA operates under the authority of the Department of Defense. As a member of the Intelligence Community, NSA also operates under the Office of the Director of National Intelligence. NSA/CSS activities are subject to strict scrutiny and oversight both from the outside and from within."