The simple answer is because of the black resin that accumulates in the pipe. This allows the fumed gold or silver to be seen or reflected differently. Learn more about fuming here.
People will call a color-changing pipe a chameleon pipe because of the way a chameleon lizard changes color. There is also Chameleon glass that was one of the first glass companies in the industry making fumed pipes