Return BMW lease early, who eats payments?

Then I’m confused how this worked:

Where was this cost baked into the lease? Cause the numbers are already much better than I’ve seen anywhere else.