He saw one of them being ill-treated by an Egyptian, so he went to his help and took revenge on the Egyptian by killing him.