An Android phone is primarily a device for media consumption and the collection of your personal data, but it can be tricked into being more than that. Without rooting it you can install a terminal and use it to learn some perl or python. There's no reason why you couldn't do that with an iphone except Apple not wanting you to. The capabilities are there, but it's not what those devices are for any more than a toaster is a gaming PC just because you can hack it enough to get Doom to run. If someone is going to develop creativity and tech skills using a smartphone it'll be despite their device not because of it.
Though unlocking the bootloader isn't what I would call hacking. It's a feature deliberately built into many devices. Jailbreaking iOS, on the other hand, is hacking, because it inevitably involves exploiting a vulnerability to take over the system.