I have lived in both, SF food is amateur hour and its expensive in comparison to NYC. $4.50 for a slice of "pizza" that is really a panini open faced sandwich GTFOH.
Also, California restaurants tend to emphasize ingredient quality over other factors- I don't know what's in a slice of pizza when I go to New York, all I know is it is delicious.
Again, just wildly speculating here