They dont. There goal is to keep you safe for the time being and dont provide treatment so your well and safe when you go home. They should keep you safe while your there and provide you with therapy for when you go home. Neglecting to do so is a medical malpractice if you ask me. Your mental condition is very important and the doctors should care enough to,medically treat you while your there,and for when you go home. Being in a stable condition as a hospital is much different then a free environment as home where your condition can be affected. Use the skills you learn at the hospital to remain safe when returning to your normal conditions.