Transfering ownership from a borrower who is in default to the lender of the mortgage. It is done to prevent expenses with foreclosure.
https://thelawdictionary.org/deed-in-lieu-of-foreclosure/