Ultralow mortgage-interest rates and a need for more space to work from home have driven robust home-buying demand in the past year and a half.