It's a basic security warning. Imagine the warning is not there: Someone sends you an app with instructions to turn on developer mode. Once you run it, you find out that it is malware. Alternatively, imagine a compromised device that downloads and loads a malicious app. Apps from the store at least have traceability as to who developed it and apps are scanned for basic security issues.