cats rubbing is a method of scent marking...so rubbing against naything in general is their way of marking it as their own...
they will also rub in "scents" they like or to add scent ontop of strange scent...
our cats indoors only, but he loves to rolls and rub on shoes then come rub up against his favorite people. hes a freek.