I never associate being homeless with attributions like social class, education, financial situation...etc. In today's world, unless you're living in Somalia and maybe China, its practically impossible to find yourself in a situation where you have no other place to sleep but on the street. Even in the worst third world countries you'll find a mosque or a church that would take you in.
Being a hobo is you telling yourself and the world I give up on it all, fuck it.
as far as i know most mosques are closed during the nights here in iran. lol
Here mosques are closed to the "public" during the night. They become the playground for all kinds of mischievous planning and plotting shit lol
But really, I was more referring to the "institution" that is the mosque or church.