"A credit score is a prediction of your credit behavior, such as how likely you are to pay a loan back on time, based on information from your credit reports" (CFPB).
Companies use credit scores to decide whether to offer credit, and to set the interest rate and credit limit. Scores are also used for tenant screening and insurance.
A score comes from a formula called a scoring model. The CFPB lists factors scoring models typically consider, including your bill-paying history, your current unpaid debt, how long your accounts have been open, how much of your available credit you're using (your credit utilization) and new applications for credit.
There isn't just one score. The number can differ depending on the scoring model, which credit report the data came from, and even the day it was calculated.