You’d have been licking your lips way sooner because that’s completely legal in the US.
In fact increasing the switching cost either monetarily or in other ways (e.g., time sink) is a very common way of locking customers in.
That’s why cancellation fees are so common in many industries.