Dog rubbing her butt on a floor

My dog (3 years old) has started doing this thing about 4 days ago where she randomly rubs her butt on a floor, like slides on a carpet. She’s never done this before. Could it mean that she’s got worms or smth? The only time she had them was when she was maybe 10 weeks old so this is new for us