The so-called "Confederate flag" that people recognize was never the actual flag of the Confederacy. It was actually just the battle flag of the Army of Northern Virginia. The original flag of the Confederacy actually looks very similar to the American flag which is why their army used a different flag in the first place.
See: https://en.wikipedia.org/wiki/Flags_of_the_Confederate_State...