And if bringing those kinds of acts to light will reduce the chance they happen again, then it's the right thing to do.
Bombing civilians shouldn't just be a mistake you sweep under the carpet, because if it were your own civilians you'd move heaven and earth to have them honored.
Sometimes that too can be classified. I do agree that should be disclosed at some point. But a third party indiscriminately leaking such material without understand the consequences is not a good way to do it. It could very well lead to many US service members getting killed, increasing Taliban support amongst the locals, perhaps even getting innocent Afghanis or Iraqis killed, etc. A better way is to get the necessary clearance, understand what's going on, and work your way through the legal chain. There is not a time crunch right now, and without a time crunch, it's best to stay inside the system.
The moral issue is very important, but sometimes getting focussed on a single moral issue can violate even higher moral mandates.
Or 'we have captured someone in Albania today, flew him to Latvia to get tortured, but it turns out it was the wrong guy. We have let him go and we are very sorry. Our government will pay him some restitution for the harm caused.'.
Then our citizens will start to ask questions. 'How come our government is doing that?', 'Why not bring them to trial?', 'What about world court? should they hold the trial instead?', 'What are our tax dollars used for?' and other such discussions.
I think a lot of this information will not compromise national security, but it is compromising our image internationally. And I think that is why it is hidden. It is shameful and wrong. Not because it can be used to launch rockets or crack our cyber-security.