Please finish your anecdote. What's different about the Bay Area that made your life worse? What improved when you left it?
People can have very different responses to their environment. It doesn't mean an area is universally terrible if it makes certain kinds of people depressed. Conversely, it doesn't mean an area is universally desirable if it makes certain kinds of people happy.
People are different.
They could of course stick around and perhaps achieve a positive self image by out competing or out maneuvering their peers. Obviously a huge amount of them do.
I'm so deeply uninterested in that