Breakdown of sensei wa denwa de youken dake saki ni hanashimasu to iimashita.
Questions & Answers about sensei wa denwa de youken dake saki ni hanashimasu to iimashita.
は marks 先生 as the topic: As for the teacher, ...
In a sentence like this, は feels natural because the teacher is already the person being talked about. The sentence is not mainly introducing who said it; it is mainly telling us what the teacher said.
If you used が, it would put more focus on the teacher as the one who said it, as if answering Who said that?
