The "why" is simple enough: The (otherwise very broken) interaction between the site and forums automatically logs in users on the forum if they are logged in to the site.
Although that's only a guess. The people who gave us this little abomination have not been in touch for past half decade.