For a city famous for its supposed progressive politics, it attracts the most aggressive form of capitalism imaginable.
San Francisco has been such a concentration point and crossroads since the Gold Rush era. It had a frontier spirit, but also became a west coast center of finance and logistics. It has always been an arena for this tension between opportunism and idealism.
Don't think that has being the case when the rent start to compete with NYC. It is a shame, but that is how gentrification has ruined another city.