The phrase
"lunatic asylum" refers to a place where people with mental illnesses or disorders were historically sent to receive treatment and care. It was a facility where individuals who were considered "lunatics" or mentally unstable were kept away from society for their safety and the safety of others.
Full definition