The professor was asking the students to see things from Stalin’s view. This is a valid inquiry as to why Stalin did what he did. Anyone who wants to understand why people do what they do needs to ask about the context in which they make decisions. This is simply a teacher teaching good historical analysis.
So why did Stalin order the Katyn massacre?