IIRC someone did a study that concluded that there's a large single-person gender imbalance, way more single guys than ladies in SF, and the opposite imbalance in NYC. Unsure if it's credible.
It's always been that way in SV, but SF used to be considered challenging for straight women. Mary Steenburgen's character in "Time After Time" comments on it.