Some high-paying jobs involve danger, unpleasantness, or other risks that make them less desirable, so companies offer higher compensation to attract workers.