If you’re in the midst of some kind of crisis, whether physical or mental, it’s somewhere safe you can go that’s available 24/7.
From there they can keep you safe until you’re stabilized (physically or mentally) and then refer you to specialists or hospitalize you.