This is a good point. However, being allied with the US does not magically make the cost of criticizing China any lesser, and there are Western countries with a stronger reliance on the Chinese economy than many Muslim countries.
So is the deciding factor really reliance, or is it rather US-alignment?
Besides, there is quite a bit to gain by criticizing enemies of the US and excusing crimes from allies of the US, see for example Muslim countries recognizing Israel at the behest of the US state department, so why is it not the case here also?
And the US too is a very powerful nation, even more powerful, yet many Muslim countries critiqued it.
I think the truth here is a lot more complex. The contrast between the reporting by western and non-western sources here as well as the factual inaccuracies in reporting and willingness to exaggerate lead me to conclude that while not offending China is a big thing, another is that western reporting is likely exaggerated as happened before when geopolitics made it convenient.