Engine Revs To 4K In Neutral

My wife has a friend who owns a 2002 Mercury Cougar with a 2.5 6 cylinder engine. The engine will race to around 4K if she lets out the clutch in neutral. If the clutch is held in the engine idles normally. Does anyone have any experience with this? I think it’s in the ECM.