The professor used hot chocolate and different cups to teach his students an important lesson about life. He explained that while people strive for the best jobs and possessions, these are just tools that don't define the quality of life. What really matters is enjoying life, represented by the hot chocolate, regardless of one's circumstances. The happiest people make the most of what they have and don't focus on possessing the best of everything.