Cervix thinning??

Okay I might sound silly but I'm confused. I got the gbs swab done and dr said my cervix is thinning. How does she know and what does that mean?

Edit: sorry it might be confusing I mean can she just tell by looking at it and inserting the q tip?