Say we do make actual individual merit the only factor in hiring and pay. Would those "unlucky" enough to have been born a starving child in Africa ever have a chance at getting a high paying IT job? Likely not, as they won't have the education or skills needed to do the work.
I'd argue your use of "luck" in all these cases is wrong. It's more like fortune, and that hiring and pay is tied to both individual merit, and the merit of your ancestors. And when I say ancestors, this is usually as little as 2 or 3 generations. A vast majority of those in the US are descendants of a wave of poor immigrants in the mid and late 19th century. Going back 4 or 5 generations on all sides of my family tree, no wealth of any significance was transferred down, other than work ethic and usually trying to give offspring the best chance they can. It was not by any means perfect, but I was the first in my family to go to college, earn a degree, and be "successful". Note: I'm defining successful as "more assets than debt". I'm not wealthy by any sense of the word but I have a stable income and I'm able to save for retirement and own a home (via mortgage).
If we take that merit out of the equation - what societal pressure or incentive is there to improve upon oneself, and make a better life for one's children?