In order to make a profit, they lend money at rates higher than the cost of the money they lend. Banks typically make money off the interest that they charge on the loan, in addition to any fees that may come with your loan application.
Some banks also make money from the fees and charges that come with your personal loan including stamping duty, processing fees, late payment fees, and earlier settlement fee.