Its mostly a stylistic choice although at one points it was mostly a heat related idea. Hot air rises so having a steep roof allowed for the accumulation of hot air. It was also a good windbreaker so a collection of houses were able to stop a lot of the harsh wind from damaging things.
Since someone answered I would like to say I hope everyone’s had a great day! シ
Answer:
from which class , which subject, which lesson