What is the purpose of credit scores?

So that lenders have some idea of how likely you are to pay back a debt in a timely fashion.