See the mistaken bombings by US forces in the aftermath of Talibans takeover of Kabul last August. US forces simply declared that though it was in mistake and none involved would have to suffer punitive measures [0]
[0] https://www.npr.org/2021/12/13/1063880137/no-punishment-troo...
Also military culture seems to not value critical thought and democratic processes. It is better for an open society to keep the influence of the military to the barest minimum.