You can believe what you wish. My ancestors fought to free the slaves. Your ancestors may well have fought for the privilege of rich men to keep slaves. Yet others may have fought for the opportunity to undertake fraud, graft and corruption in a debilitated, conquered South.
In the end the slaves were freed.