The man was attacked because he denied the mob of their white prey.
If they had wanted to attack her, it's obvious that he couldn't have stopped them. So he denied them nothing. However, he did change their attention to him if she was indeed the focus of their attack.