Why don’t warts get attacked by the immune system?

Warts bleed a lot, which means they’re connected with blood vessels. Shouldn’t that mean that they’re exposed to immune cells? It’s an HPV virus, not like cancer, so why don’t the warts go away?