I would like to add that she does this occasionally for the last 4 or 5 months. Very rarely, and it only lasts less than 15 seconds.
I don't think anything is wrong she acts just fine and it is rare. I know that females do mark; her actions remind me though of a dog "humping' someones leg.