Claudius avoids confining Hamlet to both monitor him (learn ghost's revelations) and prevent rash actions that could threaten Claudius's throne. It's a calculated balance of surveillance and control.