Judging people on their work is partly about fair play. But it's also justified by concern for the results. A system which rewards the people doing great work will produce much more of that than a system which rewards political connections.
I care quite a bit that the best cancer researchers should get hired, and the best ideas get the money -- their progress is likely to directly affect people close to me. And this is true but less obvious for almost every field... an economy where everyone was focused solely on zero-sum competitions would not grow very fast.
I don't quite know what cosmic fairness means. But perhaps cosmic unfairness involves people's talents not being identical. The goal of trying to get the fastest progress against cancer does not align with the goal of trying to remedy such unfairness.