This quote means that if someone learns something while having fun or when they are entertained, it is more likely that they will remember it. Humor is a great way to make someone pay attention and be engaged in learning. Therefore, if you teach in a humorous way, it is more likely that the person will remember the lesson that you are trying to teach them.