While the reasons can be complex, as many people have mentioned above. But in my car, high RPM were likely caused by loose battery terminals.
I stopped car, disconnected the loose terminal and then reconnected and tightened it. Did the same with other terminal. Started the car and RPM became normal.