IIRC they didn’t realize that the dwarves could communicate via ravens. They thought they had Thorin bottled-up.