The west is like this today (apart from the countries that built themselves up on colonial empires of theft) in part also to a lot of violent and sometimes deadly revolts against the ruling class.
US, UK, France, Italy, Germany, etc. all saw bloody strikes and protests, in order to get fair living conditions. Noting was ever given out of pure generosity, without a fight.
That's...barely a thing at all.
> US, UK, France, Italy, etc.
If those are your examples, you really don't need the “apart from...”
The wealth inequality was absolutely insane. It's not like thanks to colonialism, everyone living in the UK victorian era could afford to prop their feet up, live off free stuff taken from the colonies, and never have to work a day in their lives. Quite the contrary, they were working long hours living in poor conditions.
The working class only saw lifestyle improvements when they fought back for them.
During the industrial revolution life expectancy in UK was among the lowest in the world for the poorest industrial workers. Inequality was incredibly high.
Painting people in a country as being all benefiting (or being harmed) from an external factor is very misleading