Vaginal strep

My dr told me I have vaginal strep and my mom was around so I couldn’t ask why incase the answer was sex related and now when I look it up it says pregnant women get it sooo does anyone know any other ways I could’ve gotten it?