That’s just how the Capitol (and most US state houses) is. My wife has on multiple occasions waltzed down to the (non-public) underground subway that connects the Capitol to the Senate and House office buildings to chat with members of Congress. The Capitol Police usually say “well you’re not supposed to be here, but I guess it’s okay.”