Hello new2this and welcome to our boards.
Not sure if this is correct, but it seems that you are basing the diagnosis on having a positive HPV test, rather than an abnormal Pap test. Pap tests are not a specific means of screening for HPV, but some Pap results indicate (rather strongly) the presence of HPV-related cervical cell changes. HPV tests, on the other hand, are a specific means of checking directly for the virus. These tests are currently (12-2006) approved for use only with women as 1) follow up to unclear Pap results and 2) as primary screening with women over age 30.
It isn't clear when you say you're not sexually active if you mean not active at present, or that you've never had sexual contact period.
If you've ever had sex, even years ago, a recently detected HPV infection could stem from a previous exposure. If you've never had any sexual contact at all, then it is a mystery.
Genital HPV is transmitted through sexual contact: Genital to genital (or anal), and penetration is not necessary to contract the virus (although with cervical infection penetrative intercourse is the most likely means of being exposed).
There are experts who firmly believe that non-sexual transmission of genital HPV types is possible, but this isn't very well documented in terms of just "how" this happens, and it isn't thought to occur very often. It would be very rare for someone with no sexual history at all to have cervical HPV, but it cannot be ruled out and unexplained cases do exist.
Hope this helps. Let us know if you need more information.