What is credit history, and why does it matter?

What is credit history, and why does it matter?