Because wanneer introduces a subordinate clause, and Afrikaans typically sends the verb to the end of that clause.
Structure:
So the pattern is:
wanneer + subject + ... + verb
In this sentence there is nothing between the subject and the verb, so it may look almost normal. But if the clause were longer, the verb-final pattern would be easier to see.
For example:
wanneer die onderwyser met die klas praat
Here praat still comes at the end of the clause.
Both can sometimes relate to when, but they are not always interchangeable.
In a learner sentence like this, wanneer is very clear and straightforward:
It clearly means when the teacher speaks.
As a beginner, it is usually safest to read wanneer as the direct equivalent of when.
Yes. Afrikaans allows that.
Both are correct.
Notice something important in the second version: after the fronted clause, the verb in the main clause comes before the subject:
Onderwyser means teacher. By itself, it does not have to mark gender in the way English sometimes distinguishes teacher from older words like schoolmaster or schoolmistress.
Afrikaans generally does not require grammatical gender for nouns the way some other languages do. So die onderwyser simply means the teacher.
If gender matters, context or a more specific word can make that clear, but in ordinary use onderwyser is often just teacher.
It has two parts:
Main clause: Die kind bly stil
Subordinate clause: wanneer die onderwyser praat
So the full structure is:
[Main clause] + [time clause]
That is a very common and useful Afrikaans sentence pattern.