Why is the copper tube of a solar water heater painted black from outside?

The copper tube is painted black to improve their ability to absorb thermal energy. Black reflects the least amount of radiation (about 3%) of any color, and therefore absorbs almost all the radiation energy to which it is exposed.