Cellular providers don't want you being able to switch from carrier to carrier, and to prevent this they make sure you can't change certain settings like OEM unlocking.
P.S. Android allows you to wipe eSIM data, but I'm not sure how securely it does that.