Improving lives can generate financial gains, research finds.