Two words: unions and seniority. Here's a good intro:
http://philip.greenspun.com/flying/unions-and-airlines
It's also worth noting that this is largely a US-only phenomenon. It has led to a lot of junior US pilots heading overseas to fly with other carriers, most notably in the Gulf, although that party is slowly starting to wind down.