Are you referencing when Luke and Han and Chewie blast their way into Detention Block AA23 – why didn’t they start opening up every door in that giant hallway?
They were given orders and only those orders were what matters.
Also: It’s the brig on a military warship. Most prisoners are gonna be imperial military personnel who violated one or another rule. The odds they’d help you are way lower than the odds that they’d immediately turn on you.