I can't say the reason, but i can note the pattern. If it's something in your path, like a program or a script which will show you where it is. If it's a shell function sourced you will see the whole thing.
If you write a function in your current session for example which will show you the content of that command. If you write that command in a file and put that file in your path which will show you where it is
If you write a function in your current session for example which will show you the content of that command. If you write that command in a file and put that file in your path which will show you where it is