Don’t forget the opportunity cost of the equity you’re trapping in the car due to the higher monthly payments.
Factoring in this economic value impact basically puts the two financing structures (loan vs lease) on the same plane when assessed over a 36 month period. But yeah, it turns out constantly being in a fresh/new BMW is expensive.