They don’t need a bed or a room. You can camp quite comfortably throughout the city all year long thanks to the mild weather.
It’s a very different situation than being homeless in cities with more typical seasonal weather patterns; I nearly lost a number of toes due to frostbite when I was homeless in Saint Louis during a major blizzard. San Francisco’s climate and permissive camping policies help absolve a lot of the housing related issues that are involved with being homeless.