A racing bike is not about straight line speed.
There are videos of riders on 250’s beating out liter bikes on the track.
The amount of corner speed a lightweight bike can carry is far better than larger bikes… this is why some tracks with a lot of twisties is actually better to have a smaller bike.
Cars don’t play any role here.