My guess is that the DC power supply is an SMPS so will have a Y2 capacitor which will leak a small current to the secondary side which is probably connected to the tattoo gun's metal frame.
This is bad design, a low leakage supply should be used, a tattoo gun is like a medical device and should have similar safeguards built-in to the design.