The confederate statues were erected many years after the war they had lost, specifically to promote white supremacy. Lee wasn't ""cancelled"", he surrendered, and was shown considerably more mercy than the 20th century showed to the surrendering Nazis.
Putting up a statue of Lee was whatever the opposite of virtue signalling is - vice signalling?