So basically, a chemical reaction created the Earth, a biologically dead planet, and somehow biological life evolved.
No, millions upon millions of chemical reactions, nearly all of them false starts as far as the outcome we have now, happened over some hundreds of millions of years. Somthing resembling life like we know it came out of a small subset of these, and proved good enough at replicating itself that it became the dominant set of chemical reactions.
I'm an example of such a set, and you are an extremely similar example. A mesquite tree is only very, very similar in terms of its bagfull of reactions.