We absolutely could have contained AIDS.
But we didn't.
It would be racist to quarantine ebola victims who are not white. We would be prejudging them based on the color of their skin.
And that is exactly the thinking that allowed AIDS to get out, except you were a homophobe instead of a racist.