The purpose is to clean up the repo from committed unneeded files as well as files that are generated at runtime.