While that situation is oversimplified, it provides an example of how and why some lenders attempt to enact prepayment penalties.
They provide convenient access to fast money, however excessive charges and interest will price you dearly. Not everybody qualifies for a money advance .