Western countries preach about morals, human rights, rules-based order, and all kinds of bullshit but always seem to violate their acclaimed principles every Wednesday.
China sells weapons to everyone who has money, works with all kinds of regimes, and generally have a non-interventionist policy. That's why smaller countries tend to prefer partnering with them. They're not your fairy godmother, but at least they're honest about what they want.