In some cases, a car's RPM may be limited by the fuel injection system. The fuel injection system is responsible for delivering fuel to the engine's cylinders. If the fuel injection system is not able to deliver enough fuel to the cylinders, the engine will not be able to produce enough power to exceed 5 RPM.
In other cases, a car's RPM may be limited by the ignition system. The ignition system is responsible for providing the spark that ignites the fuel in the engine's cylinders. If the ignition system is not able to provide a strong enough spark, the engine will not be able to produce enough power to exceed 5 RPM.
If you are experiencing problems with your car's RPM, you should take it to a qualified mechanic to have it diagnosed.