Why is China pouring money into Africa?

The Chinese government has ramped up investment in the continent but some are worried that China is just exporting industries it no longer wants.