Hundreds of thousands of years ago the Mantis worked through a crisis of survival. Thanks to the wisdom of evolution the Mantis was able to adapt and develop a genetic contingency to fulfill the 'survival of the fittest.'
Here is the point at which the Atheist Mantis evolved into the Praying Mantis:
(Photo taken from Theo Spark.).