Credit Reporting Agencies

How do banks and credit card companies know that if you borrow you will pay back? They don't. They rely on credit reporting agencies to assess the likelihood that you will repay your loan.