He is a victim in this case, too. The beating would’ve been worse, if not for him.
Unless you are a black belt or a pro MMA, there is only so much one person can do to protect somebody from multiple attackers.