Sorry to break it to you, but he isn't.
What is real is the reason he exists. Sega needed a mascot to rival Nintendo's Mario, and the answer was a fast, attitude-filled blue hedgehog designed to look cool in a single glance. That design work is why Sonic has endured for over three decades.
So if the question was really "why was he made," the answer is competition — and it worked.