RedAppleGP wrote:
I wish I knew how the planet earth formed, and how it has almost all required items for life.
“This is rather as if you imagine a puddle waking up one morning and thinking, 'This is an interesting world I find myself in — an interesting hole I find myself in — fits me rather neatly, doesn't it? In fact it fits me staggeringly well, must have been made to have me in it!' This is such a powerful idea that as the sun rises in the sky and the air heats up and as, gradually, the puddle gets smaller and smaller, frantically hanging on to the notion that everything's going to be alright, because this world was meant to have him in it, was built to have him in it; so the moment he disappears catches him rather by surprise. I think this may be something we need to be on the watch out for.” -Dougls Adams
It doesn't have all possible required items for life; life just used what was available. Like if a master chef who will make an exquisite dish from the odds and ends in an understocked kitchen. For all we can tell, the Earth "could have (not actually, due to production of heavier elements in stars and the distribution of accretion disks)" had rather drastically different elements which still would have been able to be used to form life.
(one of few wishes I can actually grant)