Here's why:
* "Softer" is an adjective, usually used to describe a physical object's texture or sound.
* "More softly" is an adverb, used to describe the manner in which someone speaks.
The corrected sentence would be: "The teacher spoke more softly than the student."
It's also worth noting that the sentence is a question, so it should end with a question mark.