Arcing at distributor
Electrical current will take the path to ground that has the least resistance. So somehow your body is grounded better than a wire or the cap ( cracked caps do this too ).
I recall Ford 5.0s with split/torn up wire boots that would idle perfect but... jack up the rpm and sparks would jump from wire to wire at the spark plug ends.