Half of the people with HPV that I know were virgins who married virgins. But then their spouse cheated on them and brought the virus home. Another was from an assault. It's not enough for you to remain chaste, but for others around you to do so as well. I'm seriously considering the HPV vaccine for my son and any future children for that reason.
I don't think that diseases are punishments—especially not condemnations—though they certainly are likely consequences. They are incredibly common, more so than you think. In fact, the US has 6 times as many new cases of STIs every year than pregnancies according to a couple of CDC studies that I read.
Ever had a cold sore? Then you have an STI, specifically the herpes virus, likely type 1. Even if you don't currently have an outbreak, you can still be contagious; and there is no cure. The scary part is that the vast majority people who have certain STIs don't even know they are infected. Educate yourself on what is out there, how you get it, and how you can prevent it. Protect yourself by vaccinations, abstaining from behavior that puts you at risk, and getting screened if there is even the most remote chance that you could have an STI. Talk to your future spouse and make sure they get screened, too, because some STIs can be transmitted in other ways.
Finally, if you are infected, it's okay. If it is the result of sin, there is complete forgiveness in Christ. Get treatment for what you have, and understand what changes may need to be made. Overwhelmingly, many of those infected go on to live full, meaningful lives with just a few minor accommodations.