So my cat's always stay in one spot, and they never leave that one spot. I'm assuming that they are trying to reach a bed that they can't reach. In my survival world, the situation look's like the picture shown.
Steps to reproduce:
Place a bed underground and bury it so you cant reach it without breaking blocks.
Spawn a tamed cat above the buried bed.
Duplicate of MC-157385.