Not taking care of a formerly productive injured person who might recover would be profoundly stupid, if you have the food for it and some expectation they might be productive again or a superior ability to direct those who might be productive.
They took care of the injured because it was the right thing to do, just like we do today. Not because there was some utilitarian value, where you calculate effort spent vs. expected return.