ref
mad + house
madhouse (n.)
"lunatic asylum, house where insane persons are confined for cure or restraint," 1680s, from mad + house (n.). Figurative sense of "scene of uproar or confusion" is by 1919.