The Louisiana Native Guards, formed by free blacks, offered their services to the Confederacy, but when the Confederates REFUSED to accept them, they immediately joined the Union Army under General Ben Butler. That's why their wearing Union Army uniforms in your photograph.
And why, exactly, did the Confeds REFUSE them? Because they were ARMED BLACKS. You must made our point.