The difference is that Japan is a Western country, China isn't.
Think about it. In western countries (US, UK, EU, Japan, etc) you can have a court rule something that is seriously inconvenient for the government. In China and Russia that never happens.
However, I take issue with the term "Western". In this case, I would say the most advanced countries in OECD, which implies: highly functioning democracy and highly industrialised, capitalist economy. To be clear, for historical reasons there are some, err, odd members in OECD, including Turkey (currently a dysfunctional democracy) and Mexico (high levels of perceived corruption, drug war, poor control of police). And, to be fair, I don't have a good way to decide which are "the most advanced countires in OECD".