If you sign up for a loan over a certain period of time - the repayments and interest rate are set to cover that period of time. If you repay early - the lender is losing out on the interest you would have paid over the life of the loan - so they are entitled to clawback some of it (as long as they put that in the terms of the loan).