Investors are willing to pay interest to acquire loanable funds because they can use the borrowed funds to invest in profitable projects that will generate returns greater than the interest rate paid on the loan.
Lenders are willing to loan funds because they can earn interest income on the loan, which is a return on their investment. In addition, lending provides lenders with a way to diversify their investments and spread out their risk.