consent and not in state of conflict would be good reason.
Did you miss the last line of the second paragraph?
Nearly 40,000 are assigned to classified missions in locations that the US government refuses to disclose.
Also, were they not in Afghanistan with the consent of the Afghan government?