A couple thousand years ago Jesus declared the greatest two commandments to be "Love... God" and "Love thy Neighbor...", he then made the statement that "Upon these two commandments hang all the Law and the prophets".
That is fairly obvious. Consider the ten commandments. If you love your neighbor, then obviously you aren't going to steal from your neighbor, or kill your neighbor, or lie to your neighbor. You aren't going cheat on your loved one with your neighbor, or your neighbor's loved one.
You aren't going to covet your neighbors possessions, because that might lead to ill feelings toward your neighbor. Besides, you love your neighbor. You are going to be happy for their successes and accomplishments.
If you love God, you are going to Listen to him, and you are going to put him before material objects. Spend one day a week focusing on him, learning about him, trying to be more like him? Of Course you'd follow that small request.
So then, the Ten commandments are simply more detailed direction regarding what it means to Love God, and Love your Neighbor.
More bluntly, the ten commandments exist because some idiot couldn't figure out on his own that "Love your neighbor" included not smashing his head with a rock and taking his stuff.
It is my position that every law created is in fact contained within these two greatest commandments (Mostly, the 2nd one). Littering. If you loved God, wouldn't it sort of be obvious that you would take care of his creations? If you loved you neighbors, doesn't it make sense you would clean up after yourself, so they could have the same pristine experience you had? And so they wouldn't have to clean up your mess for you? Speeding; if you love your neighbor, are you going to drive at speeds that drastically increase the risk of you losing control of your vehicle, or failing to react to an unforeseen event, in a way that could lead to a neighbors' injury or death? No, of course not!
All our laws are efforts to more clearly define details of the two greatest commandments, because someone is too thick to figure it out on their own.
I therefore claim that there is an inverse relationship between the number of Laws, and the general IQ of a given population.
in other words... They's adding more laws 'cause they's gittin dummer!