Sandboxing python enough that millions of users could safely pass around excel workbooks is a super hard problem, especially when you allow third party libraries.
Forcing it to run in an isolated environment they control simplifies the problem greatly.