Pay is based on market forces, of which, skill is only one factor.
In comparison German Engineers are not paid very well, so do you assume they are lesser skilled than US engineers? [1]
1: https://www.payscale.com/research/DE/Job=Software_Engineer/S... https://news.ycombinator.com/news