A high demand for mortgages means banks have less money to lend; therefore, the cost of a loan goes up via higher interest rates. This also means that when there is more money to lend, or an increase in the supply of credit, the cost of borrowing goes down in the form of reduced interest rates.