You buy a phone for $1k, but you do it through your carrier, along with a $50/month plan. Because you’re on this plan, the carrier offers $600 off the phone price, paid in account credit over 24 months ($25/month), so your total monthly bill becomes $67/month for 2 years, then $50/month at the end of 2 years.
If, 3 months in, you find yourself unhappy with your carrier, you can still pay the remainder of your phone cost ($875) to own your phone outright and walk away. In that time, you’ve saved $75 off the full price of the phone.
Arguing that US carrier prices are exorbitant is not relevant to whether carrier locks and phone discount credits are worthwhile or cost effective.