Yes. But the reason they give for not allowing local programming environments is the risk of breaking OUT of the sandbox with an exploit.
Also, that's just not true, a general programming language gives you a lot more attack surface, surfaces that are not testable with Apple's suite of verification tools.