If you’re hosted by Discourse and on the Basic plan then those sites are private and invite-only. You would need to upgrade to the Standard plan or higher to make your site public and allow open registration.
If you’re not on the Basic plan, then you can control this behaviour using the login required
and invite only
admin settings.
It looks like you asked a similar question previously Login functionality