I often prefer it in scripts for easier parsing later.
cat file.txt | somemonstrousoneliner
immediately tells me it's reading file.txt and doing something with the contents.
Burying the filename deeper in the string makes it harder to figure that out.