That sort of thing was found in all of British institutions for the lower class. Asylums, orphanages and gaols; poorly funded and managed. I've always wondered how they avoided something like the French revolution.