Why does a lender include professional fees in their development finance model?

For a development loan, if the loan goes into default, then the lender will have step in rights to finish the project. In that instance, they will want to know that there is enough money in the build cost budget to cover the build costs, as well as the ongoing professional costs (the lender’s monitoring surveyor for example).