Why do airlines overbook flights, and what are passengers' rights?

Why do airlines overbook flights, and what are passengers' rights?