historically through various literature dragons slept on piles of gold for various reason, but mainly because it is a soft metal and will not combust due to heat when they sleep on it like other materials would. Now being a soft and small metal, it is not unfathomable for some gold coins to become lodged between the scales of the beast or even melted slightly and stuck to it, and it is these coins that we find when we kill the dragon.