Why do people live in trashy houses/neighborhoods but buy brand new cars?

I don't get it. You spend 30 minutes at most in a car per day. Why have a BMW or lexus, and live in the ghetto? Why not save your money so you can live in a better place? You spend more than half your life in a house....it makes sense to put more money into it. Or just save the money for more important things. Cars depreciate in value, and It's a waste of money. Why put all your money into a car??? Anyone agree or am I just crazy and delusional?