They don't "need" those markets but they want them. It will help to solidify China's position as the third superpower.
There are incentives for those African nations to help this happen as well. Beyond the local benefits of increased commerce, they are thinking about negotiating better rates for their natural resources than they currently receive from the west.