Intellij IDEA does that too, and the installer is a very big file. I suspect an entire headless IDE is installed in the remote host.
I'm not sure if IntelliJ IDEA has an equivalent, but CLion has an option to just do the build and run/debug on the remote host without running the whole IDE on it.