Why there is the need to have Docker installed locally to run a docker-compose.yml on a remote?

yes but if I have a repo locally and I am editing files locally, I should everytime copy all the stuff there and then run. Isn’t there a tool to automate this? i could always write a script or use Gradle. At the moment I am using IntelliJ idea plugin but it wants docker and docker compose locally.