I think it has nothing to do with fairness and everything to do with negotiating your salary. The more you know about the market, the bigger your leverage is.
And if it so happens that you earn less as a result of gaps in your skills, you should own it and work on yourself.
And if it so happens that you earn less as a result of gaps in your skills, you should own it and work on yourself.