When would someone have to use black pepper instead of red pepper?

They are both hot, the color is different (this could fit somewhere else though).

------------------