Societal expectations were very different back then. Should we also slam those trying to end modern slavery by mentioning slavers of the past?
It’s all a spectrum. One nation cannot leapfrog the rest in its advancements then demand the rest follow its new norms, unless they’re willing to put their money where their mouth is.
Is the rest of the world supposed to stay poor and desperate forever? Especially considering that rich countries still suck massive amounts of resources (and turn a blind eye to local corruption), and provide popular emigration destination for talented people who leave their homeland instead of helping develop it?
But no, the West has often been imperfect, no doubt about that, which is why these sort of restrictions and limitations were set up: to prevent repeating the mistakes of the past which hurt everyone. And yes, we probably should recognise more that the West got ahead partly in ways that harmed everyone. But none of that justifies what China is doing.