Where iPhones are concerned it's rogue employees, I went down the rabbit hole when I paid someone on eBay to unlock a Bell Canada iPhone. Somebody with credentials has to submit an unlock ticket to Apple.
The conventional code unlock is usually brute force reverse engineering.