What is the primary purpose of rahn?

Kitab al-Rahn: Pledge Formation, Possession, Liability and Eligible Collateral