The Imperial War Museam building in London was previously an Insane Asylum in Victorian days.
In those days the area was called Bethlehem. The cockney accent changed this to Bedlam.
If you were being sent to Bedlam, you were going to the Insane Asylum.
So Bedlam became synonymous with "crazy noisy chaos"