Lenders (most commonly, banks) set a credit limit as the upper limit or maximum amount a borrower can borrow.
This is done to discourage borrowers from overborrowing and to help lenders reduce their risk.
Credit limits on credit cards are often set depending on a person’s salary and credit score.