Mortgage firms often borrow funds from a warehouse lender on a short-term basis in order to originate loans that will later be sold to investors in the secondary mortgage market. Lenders may charge a warehouse fee to cover an expense charged by the warehouse lender.