Why do people get home less?

Some people get homeless is they lost their job, then used up all of their money, or if a couple gets divorced and they take the house.