Jesus was speaking to a Jewish audience. Regardless of who was present, it is obvious from culture to culture that if someone does us wrong then we often retaliate. “You have heard it said” is a statement to everybody in the audience would recognize.