You Can Treat Your Workers Right and Still Make Money

Total return for WMT stock price since 2002: -5%
Total return for COST stock price since 20002: 100%

Despite whining from the the investor class that Costco is violating its fiduciary responsibility by treating workers properly, the good guys are cleaning Walmart's clock where it counts, shareholder value Is some basic principle of capitalism being violated here?