The collateral does not have to equal the loan amount. However, the value of the collateral must be sufficient to cover the loan amount in case the borrower fails to pay the loan back.
As such, most lenders actually require that the collateral be worth more than the loan amount to give themselves some leeway in case the borrower defaults.