Human greed is the problem. The invention of corporations just helps take human greed further. Before corporations there was still medieval despots, slave dealers, gladiator managers etc. So the things you mention happened before too. Corporations just made some easier, but human greed is the defining factor.
Plus, some corporations are good.