2) The fact that you are paid more ensures that society's demand of your kind of labor is met, resulting in a more efficient allocation of resources. If everyone instead was paid the same, there would be less incentive to get better training or to perform undesirable work, resulting in less efficient allocation of resources.
It is moral to allocate resources more efficiently, as it increases well-being and reduces waste.
> If it were, that would mean being opposed to e.g. being taxed to take care of the disabled.
Not at all. A society which allocates resources more efficiently has more resources available to deal with such problems. It is also in the self-interest of every individual to be taken care of, should they become disabled.
The (im)morality of using taxation to this end (as opposed to voluntary charity and private insurance) is a separate debate altogether.
> I'm wondering whether there's a way to reconcile those two in the same moral framework.
They're already reconciled.
You aren't entitled to profits at all. Profits come after cost. You're cost. You cost more because the demand for your labor versus the supply of your labor raises the price of your labor.
Don't assume this will go on forever, the next bust may well wipe out the huge wage advantage of today's tech workers.