this option is more flexible. for example, you can get a Python interpreter
with whatever packages you want installed (the same for any other interpreter or compiler of almost any language).
I think it's the other way around; if someone was using Docker to isolate environment for individual scripts, it's like, why not use something more light-weight, such as this