"This just seems completely irrational. Do lenders imagine they're more likely to recover their money this way?"
In theory this punishment can increase the total number of loans paid, even if the individuals who default and lose their jobs won't be able to pay their loans back. Why? Perhaps the fear of the punishment incentives loaners to not default.