We have two friendly but stay cats that hang out here.
One or the other frequently gets locked into the detached garage. Sometimes spends days locked in there. Go in there for reasons only a cat would know and hide. Often makes quite a mess.
Never seems to learn. I guess I don’t either! I check but if they don’t want to be found, they apparently know where to hide.