This too but when you bring in expertise and profit driven corporations efficiency goes up and the countries in question can often get a lot more value from their resources. So it can be a win-win depending on the fine print of the contracts signed. It is certainly a better deal than China's offers of loans followed by asset take overs when the country can't pay back the loans.
I agree, there's nothing wrong with foreign investment if it serves the interests of the country.