Because chili dogs are delicious — and, in Sonic's case, because it is a deliberate character trait. The writers of Adventures of Sonic the Hedgehog, the DiC cartoon, gave him an appetite for them, and it stuck.
It is a small detail, but a useful one. A hero who is always hungry for the same junk food is instantly more recognisable and more fun to write than one who is only fast.