It is doing that because the plug is fouled.
Voltage in a spark plug wire is not an on off situation.
It starts at 0V builds up to the theoritical maximum voltage then drops off to zero again.
Voltage determines how much resistance can be overcome.
An air gap is a resistance so the higher the volts the bigger the gap the spark can jump.
Electricity will also follow the path of least resistance which is why lightning follows a zig zag path.
When voltage starts to accumulate at the end of a spark plug it will build up until it has enough volts to ground out to the engine.
If the plug is fouled then the path down the side of the electrode is easier than across the gap.
To put some illustrative numbers to it .
To jump across a plug gap requires around 15,000 V minimum
To run down the side of a fouled plug requires around $ 3,000 V
So a fouled plug will drain the voltage down the side of the plug rather than jump across the gap.
Now if you have introduced a bigger resistance by holding the plug lead away from the plug, the voltage has already exceeded the 15,000 min required to jump the plug gap.
So when the volts get to the plug they jump the gap and ignite the charge in the cylinder.
If you were to hold the lead away from the plug for long enough, eventually whatever is fouling the plug will burn off and the engine will run properly for a while till the plug fouls again.
Now this might sound like a magic no cost fix all, but it does come with a nasty sting in the tail.
Holding the lead away from the plug & increasing the EXTERNAL resistance to the spark can make it ground out internally ( if the resistance inside the coil is lower than the external air gap ) thus shorting the coil internally and consigning a $ 50 to $ 100 part to the garbage bin in place of a $ 5.00 spark plug.
And of course there is always the chance of the resistance provided by the surface of the plug wire + your skin being lower than the air gap and you become the path of least resistance ,,, ouch.
And if you have ever wondered why your car / motorbike runs at 12 V, well the resistance of dry skin is around 15 V
Put dry finger across the terminal of a battery and you fell nothing.
Damp your hand and it bites.
This should have been taught to most people who had the good fortune of a Western modern schooling during the science classes, shame so little of it seems to have sunk in.
Your problem is what is causing the plugs to foul and how to overcome it and for that I shall leave you in the capable hands of Rivets who has started to diagnose your problem which should have been addressed a long time ago by the sounds of it.