That was after a horrifically violent and exploitative Gilded Age which was eventually counterbalanced by socialism - the New Deal before WWII and GI Programs after WWII in the US, and the NHS, public education, and Keynesian public spending on infrastructure in the UK.
All of those were the result of socialist ideals, which sometimes involved violent resistance.
And they were all bitterly opposed by the plutocrats of their day - because the one thing you can guarantee from a plutocracy is narcissistic contempt for human life.
Perhaps the AI age won't be much different. But just like in the Gilded Age, the end result will be worth it.