Why does society want to keep severe mentally ill people out of prisons instead of punishing them for their crime in prisons and jails?

Why does society want to keep severe mentally ill people out of prisons instead of punishing them for their crime in prisons and jails?
Post Opinion