I’ve pondered this too and it would make an interesting study. My best guess is high levels of Vitamin D from sun exposure boosts their immune system. But really I have no idea.
Homeless in NYC don’t get that much sun exposure. Heck, most of them live on the subways and inside the train stations.