You forgot the genesis of the counterculture movement —- anyone who was discharged from the military for being gay was processed through the base in San Francisco and then sent on their way, often with no money. So a lot of them stayed in SF and formed a community to support each other.