Summary:
Some Wonders provide or increase a city's output of gold. Check out Machu Picchu and the Colossus.
Also, if you're constructing a Wonder and another civ finishes it before you do, you get a gold bonus (the size of the bonus depends upon how much progress you've made on the Wonder).