Before the nether update gold was still useful, such as golden apples, carrots, you can get better enchants more often with golden things, so you can like have sharpness III on a unbreaking II sword! So that would do around 1-2 more hearts of damage than a unenchanted diamond sword.