A professor is a type of teacher that teaches at a university. To lose class means to act in a way without grace, poise, or maturity. To lose a class can also mean to lose the ability to teach a class. Class also has the definition of being a time period when a teacher teaches a group of students together. This joke is playing on the word class and its different meanings.
OLD PROFESSORS never die , they just lose their class .