It's all random.

The physical laws here on earth led to the chemical laws. The chemical laws led to biological laws ("life"). The biological laws led to societal laws.

Physics-->Chemistry-->Biology-->Society-->?

What's next? "The Matrix"? Maybe.... The point is, that's evolution to you.