During the metal virus eggman worked on a cure but instead of using it to save everything he decided to use it to create the ultimate metal sonic, but he decided to make it emotional, with free will he did not want a robot, some time later you find an abandoned laboratory and you press a button waking it up