It's weird one. Sonic is a platformer, but there's quite a lot you can do in the games besides just going from A to B. There's exploration to learn the map or power ups, rings, special stages or even just find shortcuts for those wanting to speed run it. That's what the 2D games are known for at least. The 3D ones tend to jump around with ideas, but the basic foundations are still there.