My cat is always where I previously sat

I tried googling this, but why is my cat always at the place I last sat before going out? Today I was sitting on a different side of the couch for a couple hours and when I came back she was there. But she also gets up after a couple of pats while I try to sit next to her. (She’s not shy, she’s a relatively relaxed cat and she also just flops onto her back on the floor from time to time.)