Why and who lock and unlock the collateral in anchor protocol?

Why and who lock and unlock the collateral in anchor protocol?

??? Please elaborate.