My family lived in Thailand when I was teenager, and this is how it worked there until just before we left (around 2013) there was a new law or something, and you actually had to physically go to a place, fill out a form, and show your passport just to get the stupid sim unlocked. At least in the US you can do it online or through the phone.