↑

That gentleman in the picture, an ascetic, determined that black was the color which helped minimize your desires.
Also, he believed it gave the motor greater
aesthetic value.
(So, for an actual answer to your question, it's black because somebody liked how it looked. The cylinder heads on my '00 900 were the same gray as everything else.)