Your mistake is to anthropomorphise chemical reactions. Chemical reactions don't 'prefer' things or 'pursue' things, they happen because the conditions they are in require it.
Chemical reactions have no decisions to make or motivations to follow, they follow laws. You can ask where the laws of physics come from but that's a different question.
Je suis Charlie. Je suis Ahmed. Je suis Juif. Je suis Parisien. I am Mancunian. I am Brum. I am London.I am Finland. Soy Barcelona
"Life, don't talk to me about life" - Marvin the Paranoid Android
"Science adjusts it's views based on what's observed.
Faith is the denial of observation so that Belief can be preserved."
- Tim Minchin, in his beat poem, Storm.