When liquidity is unlocked token developers might do what is famously called a "rug pull." The liquidity is locked by renouncing the ownership of LP tokens for a short period of time using a smart contract. Developers cannot access liquidity pool funds if they don't own LP tokens. Investors have confidence that token developers won't run off with liquidity money.