What it took was social democracy and unions and other social movements.
Saying that "it's happened before, it'll be alright" is a bit naive and short-sighted.
It may have worked out fine for humanity as a whole, but it ignores the suffering of a lot of people.