No — that story isn't canon. The claim that she was killed by hunters and Sonic raised by sheep is a joke, not part of any official Sonic material.
Sega has never given Sonic a detailed family background in the games. His origins are deliberately kept light, with the character introduced as a free-spirited hedgehog and little explanation offered since.
So if the real question is why he was created, the answer is that Sega wanted a mascot to rival Nintendo's Mario.