Answer: Absorb heat
Step-by-step explanation:
Hot water are painted black so as to absorb more heat and since black surfaces have low emission levels (emissivity), pipes painted black would retain hot water longer than normal pipes.
In essence, hot water pipes are painted black because of it's high absorption (good absorber of heat) and low emission of heat. Hence it prevents lose of heat within the pipes much better than regular pipes.