Some mortgage lenders charge this fee to cover their costs of administration and sourcing funds. This fee is not refundable if the mortgage application doesn't proceed.
Often the administration fee will form part of the valuation fee and this part will not be refunded by the lender if the valuation does not proceed.