All numbers being theoretical this is what they do
Say the TPS sensor puts out +5V at wide open throttle. When the ECU see's +5V from the TPS it selects the appropriate full throttle maps. Now this is in a perfectly grounded engine. Most vehicles do not fall into this category. In the real world the TPS puts out +5V but because of the resistance between the TPS groudn and the ECU ground is high olny +4.5V makes it to the ECU. In this instance the TPS says the engine is at full throttle but the ECU see's a lesser voltage and runs the fuel and timing maps for say 90% throttle.
The grounding kits remove (or attempt to) this resistance. Hope i helped