The high cost of living is the outcome of sky-high productivity in the relevant industry, plus congestion (e.g. lack of new housing) that makes it impossible for the industry to grow in place. That's how local people become a scarce factor and their compensation gets inflated.