They put rats into a cage one at a time. At some predetermined number the rats started turning on each other. It depended on the number of rats per square foot of cage I believe.
When you get into overcrowding in a city I would be willing to bet that the same type of thing applies.
When you get a certain number of people per square foot they start exhibiting manical behaviour.