In my opinion it depends where you live, in my country it is more likely to be homeless because you are out of work than because you are a drug addict.
Moreover, as a drug addict you can sleep in a shelter to sleep in, which is great, but the unemployed can't, because capitalism is supposed to be wonderful and if you want to work you will, but unfortunately it's not like that