Originated from educational and training institutions, which also sell courses in class units. Students attending classes means canceling a class, so the word "canceling classes" comes from this. At school, canceling a class may also mean canceling the class.
A new lesson means a new job or activity.