Earlier quoted context omitted.
Please educate me
grep PasswordAuthentication /etc/SSH/sshd_config
Imagine if you look for something else, you have to point the cursor in the middle, right after grep and before the file. With cat |grep you press Arrow-up and Alt+Backspace and you are right where you want to be, ready to search for something else.
In scripts you can save the extra process though.