One possible explanation could be that the areas with high COL are also the areas contributing higher to the overall GDP which in turn implies that there are lucrative industries with relatively better enriched workforce. FWIW, Bay Area + NYC metropolitan regions alone make up roughly 15% of the overall US GDP.