But, of course, slavery in the United States did not end on June 19. Juneteenth is said to be a celebration about the end of slavery in the Confederate States of America.
And that in this context: The Confederate States of America were defeated by the most powerful slave-owning nation on earth.
By coincidence, Jefferson Davis died on December 6 (many years later--in 1889).