By the way, they are not painted, as paint reduces heat transfer. The process is called Anodizing. The anodizing creates a layer of protection on the metal surface as well as below the surface into the porous area of the metal. This is done to prevent oxidation and corrosion of the metal. Other reasons exist as well, such as resistance to chemicals, but more often for protection from oxidation on Aluminum.