It seems that most foreigners are only familiar with several big cities in China, like Beijing, Shanghai, Guangzhou, and focus on jobs in these cities. As a result, there are more applicants and competition there, which leads to a relatively lower salary because of the much higher living cost than that in other cities.
Advice: If you don't have any special reasons to work in big cities, it would be a better choice to work in a relatively smaller city, where the salary is almost the same as that in big cities but the living cost is much lower, and what's more, the scenery is usually more beautiful and the local people are more friendly.