The theory of evolution explains how life got from the first single-celled critters to modern animals and plants and shit. It can't explain where life itself came from, nor does it try to. In fact, how life arose from non-life is one of the big questions that science is trying to find an explanation for.