My first thought was of the guys on the airplane on 9/11 saying “Let’s Roll”. A lone gunman can only shoot so many people at once if they are charging him. Even if one life is saved, that’s at least one.
If everyone is charging he would not have time to reload before they would reach and overpower him.