What is a bad bank and why is it needed?

What is a bad bank and why is it needed?