"Enable shared runners" toggle greyed out for my project

I have created a project in my repository and added a .gitlab-ci.yml to it.
When I try running the CI pipeline it gets stuck because there are no runners assigned to it.
So I navigate to Settings > CI/CD > Runners but the “Enable shared runners” toggle is disabled. Why is that? I cannot figure it out and have tried searching online to no avail.