One reason for this is that gold has tended to follow the general price trends in the raw commodity sector and that sector tends to fare better when there is more risk appetite in the market place.
FORBES: Comex Gold Slightly Higher, Hits 3-Week High, But Firmer U.S. Dollar Index Limits Upside