Lending protocols rely on overcollateralization of loans instead of contract law. If you want to borrow $100k, you would give over (say) $200k worth of some token that you didn't want to sell. In that example, if the value of that token dropped by 50%, the lender would sell all of your collateral to recoup their $100k, not take you to court or send you to a collection agency.
If on the other hand you eventually return the $100k, you would get your collateral back.