The bacterial infection will not be HPV related. Pap smear coming back abnormal doesn't necesarily mean you are positive for HPV, you will have to ask them about that.
Even if you've not been sexually active for a year, you can still have HPV. HPV is a virus which once you get it, you will have it forever. However after some time it can lay dormant in your system, but it can become active again.