"The teacher's office is spacious" should be right as well in my view
i learn more english then arabic
The office of the professor is spacious, is grammatically equivalent to the given answer. Yours is in the possessive form.
"The office of the professor ..." should have been accepted.