1. Dahl had already made changes to the Charlie and the Chocolate Factory. The early editions had African pygmies as his free labour. I don’t think the world was “woke” back then.
2. This is being done by a corporate publishing house in order to maximise the revenue of one of its key IP assets. It’s not mandated by government/regulation; there is no viral social media furore or press campaign. It’s not censorship nor anything like 1984 where works are being revised and all traces of the previous version cease to exist.