i think it means they want attention, when my cat did this she wanted me to pet her or go to her so she would have me follow and show she wants to go out or have some food.
I assumed she just knew how cute she is and deliberately wanted to be even more cute so i would have to come to her, which i always did precisely for that reason.