A very very long time ago, one of two things must have happened:
Someone noticed a lack of instinctive organization in society (in other words, people were not working well with each other in order to keep society stable).
Someone wanted to control the general populace.
It’s possible both things happened. The point is, there was a need for a system of cont…