It's used so that parts of your model can have one shader, while other parts can have a different shader. (e.g. if you have a single mesh model of a human, you can use a layered shader to map the skin and clothing not merely with different colors, but with different speculars, reflections, and even have the skin use a Lambert while the clothing uses a Phong.