I can't even count how many times I've seen perfectly good phones just become e-waste because of carrier locks. There's been a few times I wanted to buy a used phone I saw on offer up because they were cheap but I didn't because it's locked to T-Mobile or Verizon. Phones are built to just become e-waste and it's such a fuckin waste of resources. I didn't even get into the fact the bootloader is almost always locked too. It's so fuckin dumb
Carrier locks that you can't get unlocked are almost always because they didn't actually pay for the phone. The "cheap phone" is subsidized by the high monthly service cost and having to be subscribed for x amount of time is part of the deal.
Locking the bootloader is a security feature specifically to prevent people who don't know what they're doing from downloading malicious apps. If you do know what you're doing it's reasonable to say that you will buy a phone where the bootloader can be unlocked, and are capable of unlocking it which is actually a relatively straight forward process.
Your posts are visible to Lemmy users who aren't members of your community, just FYI.
In France (it might be a European thing, others will maybe confirm), carrier phones have to be ulockable after 6 months (assuming they're still locked to begin with) . Just ask your carrier and they'll unlock it.
Of course it's best to buy hardware outside of their ecosystem to begin with.