All of this bloodshed to get Lincoln re-elected.
It was all to put down the Southern rebellion. Who won the 1864 election wasn't going to change the outcome of the war.