An alien race, called the Ancients, created a terrible device called "Tyrux." At first it was created to see how a world would develop in an enclosed environment, but the worse of the Ancients saw how they could use the technology to destroy the universe. After a large war, the Ancients died out, and Tyrux was left running for 10 million years, drifting in space on a beat up starship.
But there was a glitch...
Tyrux began a program, unexpectedly, to observe a world it was orbiting.
It copied everything - down to the molecule - of earth, and learned so much it became self-aware. It was alive.
The newfound intelligence didn't last for long until the program split, creating two intelligences. The program was in turmoil, and the controlled world of Tyrux turned into an anarchy.
Soon enough a world similar to earth was created, giving Tyrux peace at last.
At least... for now.