The correct answer is: to let banks measure the risk of a loan.
A credit score is primarily used by lenders to evaluate the likelihood that a borrower will repay their debt, thus helping them assess the risk associated with lending to that individual.