He saw one of them being mistreated, so he intervened to defend him. On behalf of the man he took revenge and killed the Egyptian.