It's easier to prove you have a special skill. They pay you more because they can't hire a replacement. In the other case, you have to prove how much better you really are. Of course, the trouble with specialization is that the skills take time to acquire and can be commoditized or become obsolete with a paradigm shift. A more risky proposition in tech than, say, medicine.