What does "disconnecting" a customer involve, anyway? I recall having to return equipment or face a penalty to cover costs (high, but still somewhat understandable), but I have never had to pay to get off a broadband contract.
[1] https://www.virginmedia.com/legal/fibre-optic-services-terms...
It's supposed to compensate banks for lost profit from you not paying interest for the entire term. Equally, a bank can't cancel your mortgage before the term ends for the sole reason that it would be able to charge higher rates for a new mortgage.
But borrowers should know what they’re getting into, and have options.
It means you have to pay attention when borrowing, but loans with that penalty likely carry a slightly lower rate for the borrower (because they are predictable for the lender). It isn't entirely arbitrary.
I had an experience like that last year. I was cancelling my broadband in UK with Virgin, and got a £280 disconnection fee. The person who informed me said I will have to pay it in my final bill. Then over a month later I got a call from someone who's task was to see if I need a new connection where I was going. I said no, I was leaving the country. He asked if there was anything else he could do for me. I said, "you could cancel that huge penalty fee I got.." And he was just like "Sure, no problem, done."