The primary goal of treating visible genital warts is the removal of the warts (not infection). Treatment possibly reduces, but does not eliminate, HPV infection. Whether the treatment results in a reduction in risk for transmission of HPV to sex partners is unclear.
The presence of genital warts is not an indication for HPV testing.
Were you practicing safe sex when you contracted the HPV infection?