You can render out shadows separately from everything else. This is important in many cases, for example, if you want to blur shadows. In a composition you can soften, blur, brighten or change the color of shadows to match whatever it is they are composited against.
To catch shadows, see Catch shadows for an alpha channel.