Homelessness alone is only a small factor for that drop in life expectancy. Lack of social bonds is probably way bigger (of course, you probably don't end up homeless if you have strong bonds). There's ample research and evidence showing the lowered life expectancy of housed people with few social connections.