The key aspect is longevity.
While engines on road going cars have to handle hundreds of thousands of Km, F1 engines only need to last a few thousands.
Based on that fact and lower tolerances they can push several metrics that are key to the power output of the engine such as RPM a lot further than the automotive industry.