Possibly have you hitherto had a cold? By chance did you heal from the cold? Obviously you got over it! You won't cure a cold directly, yet your immune system usually develops resistance to a certain cold virus within a couple of days. That is called being healed by your personal immune response!
HPV is similar because HPV virus is just one more infection. And you can quite simply establish resistance to HPV virus. Nevertheless, HPV virus is more adept at hiding from your immunity compared to the common cold infections. Therefore you have to work with more diligence to obtain resistance to HPV.
http://claytonctnp906.unblog.fr/2021/04/26/how-to-cure-hpv-warts/