Not all of California. San Diego apartment prices are only slightly more expensive per square foot/meter as those in Krakow, Poland, hardly a wealthy chichi city.
As far as New York, it’s actually somewhat cheaper than London or Paris. But higher property taxes that hit apartment (vs single to three family house) owners hard account for the disparity.