Why do bank demand collateral while issuing a loan?

Collateral is an asset that borrower owns. The collateral can be anything that has monetary value in it. The bank demands the collateral for the guarantee against their repayment for the credit. Collateral can be land, building, gold, vehicle, etc.