These are both connected to the cable screen. This has the effect of enclosing all of the guitar’s electronics in a conductive box which is connected to ground. Any noise that would previously have been picked up and amplified along with the guitar signal is now mostly shunted to ground, giving a much cleaner signal.
eBay