I create lots of log files and other temp files when I work. Maybe I just fetched some .json from a service and put it in tmp.json? Maybe I created a small shell script to automate something I'm doing?
You might be able to put them into .gitignore. But why not keep the shell script in a tools folder?