People aren't paid what they "deserve" but what value they provide to the company. If the situation exists (whether created by the CEO or not) that makes it more expensive to replace the CEO, then unless they plan on firing the ceo, the ceo's value to the company increases because they are expensive to replace.
Or to put another way, life isn't fair and outcomes dont neccesarily align with what people deserve in a moral sense.