The military is not a democracy. It is a totalitarian world in and of itself. They have the UCMJ, the uniform code of military justice which for the most part, completely by-passes state and federal laws. What they say, then you must do.
Look at it this way. the guys on D-Day were not...