That isn't Git installing things though, that is third-party Git distributions bundling things along with Git.
The overarching point is that the shell itself is not installing anything at shell runtime. E.g. it's the Git Bash installer, not opening `bash`.