Let's say I have the following situation:
Student: Professor, do you have the answers for the questions on your textbook?
Professor: No. When I was a student like you, we had to struggle to answer them on our own.
If the professor decided to do so solely because he wanted everyone else to "suffer" the same as he did, did he/she do it out of _____?
As far as I have searched here, I did not find a specific word for this kind of "forcing an empathy".