“Work is the measure of a quantity that is capable of accomplishing Macroscopic Motion of a System due to the action of a Force over a Distance.”
This is physics, not philosophy.
I have no personal interest in arguing against the philosophical or religious notion that reality is tuned to allow or even promote phenomena like chemical and biological evolution. I don’t argue for them either.
But within the observed range of phenomena studied by physical sciences, we do not find capriciousness. Not so far, anyway.