Also, a lesson also means a learner learning something he did not know before. Such a "lesson" can be either planned or accidental, enjoyable or painful. The slang phrase "to teach someone a "lesson"", means to punish or scold a person for a mistake they have made making sure that he does not make the same mistake again.