It spreads fairly easily, dodges precautions by erupting at long, unpredictable intervals in infected humans and is impossible to dislodge from its hiding place in nerve cells. Most important, it causes discomfort and embarrassment rather than disability and death. It will be around as long as the host is. HIV is an evolutionary champion. Because its information is carried as RNA rather than DNA, it has no mechanism to correct mistakes when it makes copies of itself, and the rate of mutation is fantastically high.
Rapid mutation is one of the ways it escapes attack by the immune system.
But this mutation rate may work to our advantage. From an evolutionary point of view, the more we practise safe sex, the more natural selection favours those HIV viruses which let the host live longer. Unprotected sex fails to punish viruses which slay their host early. It would be much more widespread if it were less cruel to its hosts. Humankind does have a failsafe mechanism.