Sonic was simply born with super speed — that is the core of the character. The Power Sneakers came later, built by Dr. Ivo Robotnik back before he turned to villainy, and in some tellings the shoes were passed to Sonic by his Uncle Chuck.
The original purpose of the sneakers was practical: they were designed so that running at those speeds would not burn the soles of his feet.