Why are there two ways to unstage a file in Git?

Shell
git rm --cached <filePath>
Source

Also in Shell: