Vaginal sweep?

My doctor said at 36 weeks she'll do a vaginal sweep with a cotton ball thing, she didn't say what for. What do they usually do this for?