In Christian cosmogony, it was God who (1) made something out of nothing and then (2) gave that something the order that it has. In Dialogues Concerning Natural Religion (1779), David Hume argued for “a new hypothesis of cosmogony,” which was a challenge to the latter doctrine: that without God, the order in the world of matter has no good explanation. In essence, he argued that the order in the world of matter can be accounted for without hypothesizing supernatural intervention, for that order is the natural result of something that everybody knows: that some configurations of matter are more stable than others. If some matter in an unstable form by chance falls into another unstable form, then by definition (i.e., by definition of the term “unstable”) it’s unlikely for the matter to stay in that form for a long time. It’s when matter instead by chance falls into a stable form that it’s likely to stay like that. Chaos falls into chaos until it settles into order.
Interestingly: In The Selfish Gene (1976), Richard Dawkins used that Humean argument in order to contextualize biological evolution. Hume explained how chaos naturally settles into order (which is an explanation of any kind of evolution, whether biological or not), and to that explanation Dawkins added the idea of a replicator (which is how biological evolution works in that context).
Why are there so many rocks? Because rocks are especially stable. If some matter by chance falls into the form of a rock, then it’s likely to stay like that. And why are there so many birds? Not because birds are especially stable on the level of the individual, like rocks, but because birds are especially stable on the level of the group. They’re especially good at replicating themselves, and thus keeping the group in existence, before themselves falling out of existence.
That Humean argument, however, falls to thoroughgoing subjectivism. The difference between chaos and order isn’t inherent to the world of matter. The difference instead comes out of something subjective: categorization.
Rocks are stable because rocks are rocks whether they’re big or small, rough or smooth, etc. But why categorize like that? A big “rock” can fall and break into small “rocks,” and a rough “rock” can be made into a smooth “rock” after enough time in a river. Our categorization scheme is such that through those transformations they’re all still “rocks.” How stable! Theoretically speaking, though, it’s possible to use any categorization scheme that you want. Anything can be thought of as staying the same through any transformation, and anything can be thought of as not staying the same through any transformation. It’s possible to imagine a categorization scheme that puts even rocks into chaotic flux.