Unreal is a game engine, iOS is an operating system.
In almost every other case application software is not considered to be a derivative work of the operating system it runs on. If this wasn't the case, then Apple could have easily sued Cydia and AltStore for offering the equivalent of iOS fanfiction. Hell, even the Copyright Office was perfectly fine with adding a DMCA 1201 exemption for jailbreaking iPhones to install non-Apple software on them - and they're extremely tightfisted with those.
The reasons why this is different is very simple: you don't distribute Apple's SDK along with your application, but you do distribute Unreal's. The user got access to Apple's code when they bought their iPhone, you have to give them Unreal Engine, so you need a license for that.
In almost every other case application software is not considered to be a derivative work of the operating system it runs on. If this wasn't the case, then Apple could have easily sued Cydia and AltStore for offering the equivalent of iOS fanfiction. Hell, even the Copyright Office was perfectly fine with adding a DMCA 1201 exemption for jailbreaking iPhones to install non-Apple software on them - and they're extremely tightfisted with those.
The reasons why this is different is very simple: you don't distribute Apple's SDK along with your application, but you do distribute Unreal's. The user got access to Apple's code when they bought their iPhone, you have to give them Unreal Engine, so you need a license for that.