It was bound to happen. With nine full moons a school year, something was bound to happen. Turning into animals made them safer, but not invincible. The Marauders attempt to hide the damage keeping a werewolf company leaves from said werewolf.
Harry's not the only one to feel guilty after the battle. Fred's death haunts his entire family.