The Gradle wrapper is how you let gradle download itself upon first execution. It stays in your git-repo, and then you don’t need to install gradle yourself.
https://docs.gradle.org/current/userguide/gradle_wrapper.htm...
https://docs.gradle.org/current/userguide/gradle_wrapper.htm...
Generating the Wrapper files requires an installed version of the Gradle runtime on your machine as described in Installation. Thankfully, generating the initial Wrapper files is a one-time process.