Strep B test

I had a dr app today , 36+4, I did the strep B test, basically stuck a Cotten swab up my vagina and then my butt. Just wondering what it was ? I didn't even ask