Do I remember everything that I was taught in school? No, but I lived outside of Pakistan my whole life, and only got 2 years of Urdu language classes, even though my parents have talked to us in English most of our lives, yet I'm fluent in Urdu, I can speak it fluently and I can read/write at an intermediate level.
So if I could remember a language fluently that I barely get to speak , then it's pathetic for this professor to not be able to speak fusHa. And by the way, in Morocco, they don't teach in English, they teach in French and MSA(FusHa). It depends on which subject we're talking about. Maths, geography, sociology, political science, Islamic studies are usually taught in MSA. Whereas chemistry, physics, psychology, anthropology, and other science related subjects are usually taught in French .
One thing you might not know about Moroccan Arabic is that it is not actually Arabic. Yes it came from Arabic. But due to its geographic distance from the Arab core lands, and the influence it had from the native language that the Berber people spoke, the amazigh languages, it has diverged considerably to the point that it's unintelligible to the Arabic spoken in the middle East. A Pakistani can understand Bengali or bihari, or Marathi better than an Arab from Egypt, sham, Iraq or gulf could understand Moroccan Arabic. That's why they call their dialect Darija.