It's okay to surf without logging in, as this is a public forum in that respect, I think.
Certain aspects of the forums require logging in though, such as posting a reply or a new topic, quoting a message, etc. It's possible you clicked something that required membership access by accident, like the post a new topic button at the top of many pages.