Why do lenders ask for collateral while lending?

Lenders ask for collateral while lending because if payment of interest and repayment of the principal are not made on time, the lenders can sell the collateral assest and recover their money.