You're making the argument that companies should be nicer to their employees, because that is in the best interests of their shareholders. The linked article is implying that companies should be nicer to their employees, despite the best interests of their shareholders. These are 2 completely orthogonal arguments. The first is a moral argument, whereas the second is a business-tactics argument.
Since you brought it up, I certainly agree with the business-tactics argument to some extent. Companies like Google have certainly done well for their shareholders, by keeping their employees happy. But then again, companies like Walmart have shown that in some markets, employee happiness is barely correlated with shareholder returns.
WalMart is concerned about employee happiness and satisfaction. The actions they take are not the actions that other companies take. Their employees are happy enough with the results for WalMart to be satisfied with them. That others do different things (which may or may not achieve different results) is not important to WalMart. What is important is their return on investment, they have determined that more investment wouldn't be worth it.
Of course as outsiders we can look on WalMart and make value judgements. I wouldn't want to work there. I wouldn't want to work for Costcot either. YMMV.
Of course how much so spend on those "good things" is an optimization problem.