Sure, some sports car engines turn at over 9,000 RPM, but a car stuck in 1st gear on 9 inch wide street tires is not going to go faster than the same car in 5th with 11.5 inch wide racing tires. Even at the pinnacle of motorsport RPM is a poor determinant of speed, it takes a whole system.
My analogy was comparing the CPU to a car, so I do consider the gearbox. An engine, no matter how many RPMs it can turn, is pretty useless without the vehicle.
The redline is almost never the point of peak horsepower. This is primarily driven by the fact that the valves can't close/open fast enough at these speeds. Its much worse on domestic vehicles that have to care about fuel efficiency (and so can't use stiffer springs) but the effect is still visible even in race cars.
In F1 the previous generation engines was limited to 18k rpm by the regulations. They could go higher, and since they always went up to the 18k, it's safe to say it provided the most power, otherwise they would have shifted before.