Given assaulting a a superior officer, attempting to usurp lawful chain of command,and disobeying a direct order resulting in death of a fellow officer there was still going to be a punishment. Yes, the war wasn't her fault but her behavior was still problematic and warranted actions .To be fair, people were getting killed either way. The whole Burnham thing never sat right with me. Starfleet wasn't prepared and they used her as a scapegoat.