It allows you to write scripts that you can run without using a browser. This is very helpful if you are creating scripts that need to be run at specific times. Or if you have scripts that do specialized tasks for you that really don't need to be web pages or would be better off if there was no outside access to them.