Eh, I don’t know whether it’s territorial or not, but my cat absolutely does that to hands on the stair railing. Or hands on a chair’s arms, for that matter.
I think that cats just like pretending that a hand on top of something is a mouse sitting on something.
I think this cat was playing.