Hpv

Hi im abit confused I was diognosed with hpv in November. But everywhere I have read says it's an sti. But me and my husband have been together since we were 18 and have only ever had each other. So how can it be an sti. And we both havnt strayed.