It was pure vengence, no military value. Unfortunately it's really hard to get your public behind hanging your own war heros, especially when the other side was so inescapably the bad guys.