When using submodules, and the submodule commit is on a tag, then git bash displays the tag names instead of the commit sha of the submodule. Github has a different behavior and always displays commit sha even when it could display the tag name.
If think displaying the tag name would be more useful than commit sha.
What GHE displays:
What git bash displays: