I don't doubt this is the canon explanation of how Sonic can lose in a race.
Still, it's nice of Mario to always call his old time rival to all kind of fun and games.and the occasional world destruction event.