One of the major problems is that inexpensive housing is illegal.
India has slums, and Brazil has favelas. They aren't good but they are better than the street. US used to have rooming houses. Now, if you cant afford an apartment, and can't get an expensive one gifted from the state, you have to live in the street. (Not in your car; that's usually illegal too.)