The US companies are doing this to not get export restricted by the US government which in turn can end up with companies using Chinese models to get around those restrictions.
Its not really a matter of who's good and bad (neither the US or China has the best track record), but creating a scenario where the other party can use your own policies against you.