Then pick a different one. Which measure did you use to come to your conclusion?
I suspect you didn't use one at all, because I am not aware of any measure of "slavery" that correlates positively with any measure of investment activity.
Labor practices and protections are much better in countries with high economic investment.