Why is there @remove-git-submodules command

Hi,

I would like to understand why do we have this command executing on each install/update of packages?

When I am developing plugins I have a repo cloned into plugins directory and each time I run composer install or composer dump-autoload command above deletes my .git folder.

My guess is that there is a valid reason for this command to be executed, I just do not know what it is, if someone can explain to me why this command is there, that would be greatly appreciated.

Regards, M.