You don't need to necessarily have an account to use the chat, in some cases you can click on the chat field and a set a guest name yourself.

However, streamers can enable the chat for selected user roles. For example, the streamer can set the chat to registered users or followers/subscribers/mods only, so only those can enter. This is to prevent spam and harassment.

You can see who's allowed to enter in the input field.