Because the script can do branching logic and checks that you otherwise have to explain to the user.
Not defending the practice, I don’t like it. But the intent is to make it easier.