Cats staying in bags may be because they are fearful or unsure of their new environment. For cats, being in a bag is a safe place where they can see the outside world while protecting themselves from harm. Alternatively, cats may stay in their bags when out and about because they are a bit shy. Especially when cats go out for the first time, they may feel a little uncomfortable with their new environment. At this time, they will hide themselves in their bags and observe their surroundings until they feel safe enough.
Cats may also stay in bags when going out because they find it more comfortable. Some cats like to sleep in a bag, so they may treat the bag as their own little room in which to rest or play. If your cat stays in a bag when outside, consider taking it to the new environment and providing it with a sense of security. For example, you can take it to a quiet place and let it move around freely while keeping it company. In this way, it can slowly adapt to the new environment and enjoy the fun of going out when it feels safe.