The industrial revolution also lead to a lot of misery, so we don’t have to do any better with the AI age is exactly the kind of thing that makes people say we learn nothing from history.
The bad examples are for learning and doing it better next time, not repeating the same patterns with the same predictable outcomes.
That is what human society is all about.