I've worked with some engineers in India that aren't getting good salaries. They were much smarter than some people in the US that are getting good salaries.
Salary, in my experience, really correlates with nothing. It doesn't make sense, but that's my experience.
Good engineers command good salaries.