According to the author of the Wikipedia article on the siege of Vicksburg, Pemberton hoped that if he surrendered on July 4, he might get "more sympathetic" terms from the United States.
The author did not indicate how well Pemberton was satisfied with the degree of sympathy included in the terms he actually got.