Good questions! Most people working in these cafes can't afford to live in the city - most baristas in SF seem to live in the East Bay. A lot of people are still able and willing to pay $3-4 for a cup of coffee so instead of going to Starbucks people choose to buy better coffee in smaller shops?