Why is the Docker container installation recommended for imports?

And I do that in docker deployment too. I have a script that copies the import script from a separate mount point into the discourse tree (and includes env for the database and such).