I learnt about the law of unintended consequences through Jordan Peterson. When implementing changes to society or a system, there are always unknown things that change. Not because that was the objective but because by trying to achieve an objective, humans or nature reacted in an unpredictable way.
Creating changes to a system can be not only unpredictable but also downright bad. Just look at the former society union as an example.