OK, now I need to know.
... tl;dr: a combination of "optimal seed dispersal" and breeding.
Remember the guy who claimed bananas are a sign of god's existence because they are optimally shaped for inserting in your mouth? (edit: the banana is an atheist's nightmare)