But what if there is no logic to the system, that it's arbitrary, and random, and has simply found an equilibrium at the moment? You could drive yourself crazy thinking about it. Why are writers valued as they are? Because that's what people are willing to pay them. Why don't they just rise up and demand better pay? Who knows. Maybe people just don't value reading that much. Is it because they're uneducated? etc. ad infinitum.
Why does a web developer making to-do apps lead a better a life than someone researching cancer cures? Beats me. But it would be a complete waste of their good fortune, to be at the right place at the right time, if they didn't use this advantage. Already the system is saturated with hacker school grads, and the buzz is moving towards mobile, I can easily imagine a day where knowing Rails is no longer a golden ticket.
It's as silly as wondering why you got to cross the Atlantic on the luxurious Titanic, while everyone else is scrambling to the life boats. If you truly think that your present value is purely a matter of luck or a bubble, that it's illusory, then there is no why, you'd damned better make sure you find something concrete before everything goes to shit.