San Diego is an expensive city due to its wealthy population who can afford to pay high prices for housing. These affluent individuals often hold lucrative jobs that require them to live in upscale neighborhoods, leading to a demand for high-end housing options.