Note the periodic peaks in density, even as atomic mass is gradually increasing.
Density of an element is related to Atomic Mass and Atomic Density. Atomic mass of Au is ~197 and that of Pb ~ 207. However, when we look at the atomic radii and bond lengths, those distances are smaller for Au than Pb.
So the Au atoms are more tightly packed than Pb atoms, and thus even though the atomic mass of Pb (207) is greater than Au (197), the density of Au is greater than that of Pb.
density=mass/volume.
although gold has a lower atomic mass than Pb, the volume should also be considered.
that is the strucuture(size of Au/Pb and metallic bond radius...)