Why Did some African Americans Fight for the Confederate Cause?

While there were very few African Americans who fought with the Confederates, some did so vehemently, but why would they fight for their own slavery?