This is not an act of betrayal, but a way for Saeril to stop a war between the Elves and Dwarves. In the next post, Bilbo can rescue them from the dungeons. Saeril will shortly follow.