Because one is a programming language environment running locally that claims be properly sandboxed and the other allows one to connect to remote environments.
This is purely at technical question you have asked.
This is purely at technical question you have asked.
The overarching rule for the App Store when it comes to these things that the implementation details are completely irrelevant, the only thing that matters is what a user sees when they open the app.
I don't like how Apple is enforcing it, but that's arguably better than outright banning these platforms.
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.