Of course not, but many do - it generally doesn't make sense to buy if you won't stay for a longer period of time (used to be ~7 years, not sure if that's shifted) due to closing costs, interest on loans, etc.