How to enable branch protection rules

I’d like to enable the branch protection rule, however, it looks like I have no way of doing it. I created the repo and I am the admin. Does anyone know what is going on? Thank you!

Is it a public repo?

The functionality is sometimes different for free private repos.