Difference between submodules and node_modules

Hello All!

I was wondering if anyone could tell me what the difference is between Appium submodules and node_modules. In particular, I am interested in the appium-uiauto. From the folder structure perspective, they seem very similar. From file contents - very different.

Thanks for the help.