Since the person (鲁人) chose to work at a foreign county,it indicates that his productivity is worth more there. Part of his earnings may also be sent back to 鲁 for increaing the welfare in the country.
There are two reasons why Confucius blamed him. First, by bringing him back the overall earning decreases (鲁 pays less). Second, the opportunity cost (the buying price) is hidden and therefore economic cost can not be calculated correctly.
Overall, the welfare in both countries decreases.