From a professional perspective, a cat might get angry if it's locked out. Cats are sensitive animals, and they highly value their interaction and relationship with their owners. If a cat is used to being with its owner and is suddenly locked out, it may feel scared, anxious, or even angry. This emotion might manifest as scratching at the door or meowing.

In addition, if a cat is left unattended outside for an extended period of time, it may face safety risks, such as exposure to cold, heat, or rain, or even be attacked by other animals.