How doesn’t, the west has turned its back on the genocide they are facing so it only makes sense that they would seek to align themselves with players outside that group.
China and Russia are as self serving as the US, no less or no more. Palestine could benefit from this relationship more than it benefits from being ignored by the west.