It's not the case. Show me the law that says that. You can't be there isn't one - it's perfectly possible for companies to take moral stands and many do.
Consider that both Google and Facebook have no presence in China.
Those are exceptions not the rule. I would bet that at least 99.9% of corporations in this country would open up shop in china if it were profitable to do so.