Lead Solder Chemistry

Hi: I’m trying to find out what is the scientific reason that lead
solder eats up gold jewelry? How and why does the lead attack the
alloy in the gold? thanks, Lynne.