As the American saying goes, always " Follow the money" when you try to figure out what is happening.
And it is not difficult to figure out that the fact that Pakistan does not have much money of its own, by itself, is a good predictor of how it will be treated by other countries, including China.