Maybe I don't see your point, but an iOS app could execute code locally. The only risk is the device owner could compromise the device. There is no [additional] risk of another user doing so.
Not saying that's Apple's reason, but being limited to local execution doesn't mean it's safe.