As dementia progressively becomes worse, the person might feel like their world is closing in on them. This can trigger feelings of confusion, anxiety, and fear, causing them to react defensively and also withdraw.
People with cognitive impairment have a very sensitive emotional radar and can pick up the feelings of those interacting with them.