Because it's one of the most obvious questions to ask about Silicon Valley? You have to pay a hefty premium for programmers that may leave at any time for a better offer.
The rest of the US is a cheaper, Western Europe is cheaper still, and by the time you look at Eastern Europe you'll see that not only can you find programmers that stay on longer, you can actually find experienced ones.
There are literally thousands of blog posts on why or why not Silicon Valley, and the cost of living and hiring are brought up every time.
It doesn't seem to be so common among marketing people, lawyers, or politicians - all of whom, in increasing order of severity, might benefit from more if it.
I was thinking about exactly this earlier today -- I'm almost suspicious about my level of compensation. I work for a reputable company doing straightforward development, but the stars aligned, so to speak, in the timing of my offer, and I'm probably making twice as much as the average programmer with my experience in my region. I'm good at stuff, but I'm not twice as valuable. I just wonder if this is going to last.
> I can't really find an explanation for it so far.
He basically hinted at that by saying: "because I get to do what I love (programming,...)"
I believe you and gp (lemevi) are talking from 2 different perspectives. Your perspective is more about "don't sell yourself short" or "don't devalue your skills".
The gp's perspective is more about the "mystery of the universe" as to why an enjoyable job could pay more than a boring one. It's a similar sentiment to the successful novelists, comedians, musicians saying, "I feel lucky that people pay me lots of money for doing what I love to do." (Yes, there are tons of programmers who suffer through boring CRUD coding and treat it as "just a job" but there are also many programmers who truly enjoy the activity.)
I experienced the gp's perspective in my first job out of highschool. I happened to be a decent typist so I got a job to transcribe audio to word processing documents. One day, the business owner was looking at his screen in frustration trying to make something work. I looked over his shoulder and saw things like "DO WHILE" and "DEFINE PROCEDURE" on the screen. I just looked at it and then had one of those Jurassic Park moments[1]. I said, "you need to set a variable here, and move that line there, etc etc." He was totally surprised and said he'd pay me double the hourly rate if I could fix the computer program. I couldn't believe it. I had programmed computers during middle school (age 11 to 13) and treated the whole coding activity as "playing with a toy". I stopped programming during high school and worked at a fast food joint for minimum wage. I had no idea that people paid money for programming. People will pay me more for typing "DO WHILE" than mopping floors and hauling out grease buckets?!? That's absurd!
Yes, on one level, one can do all sorts of economic analysis (supply-vs-demand, marginal utility, productivity multiplier of software) and conclude that it makes perfect sense that programmers are paid $X more than brick layers. However, even with that logical rationalization, there can still be this "mystery" of why a person typing on a keyboard in a pleasant air conditioned office makes more than a brick layer sweating in 100 degree heat. It seems unfair that a "game" from my childhood earns more than back-breaking labor.
I've heard it mostly from individuals of more humble backgrounds working on projects with little connection to the value they create. Many people are simply unequipped at seeing how they impact at scale. I've often found myself reminding people of the contributions they've made and even gone to lengths of calculating those contributions so I can show them that, if anything, they're vastly underpaid.
The rest of the US is a cheaper, Western Europe is cheaper still, and by the time you look at Eastern Europe you'll see that not only can you find programmers that stay on longer, you can actually find experienced ones.
There are literally thousands of blog posts on why or why not Silicon Valley, and the cost of living and hiring are brought up every time.