Cats do things indoors which, if they’d ever tried to do them in a state of nature, would have caused the world to run out of cats before anybody ever thought of domesticating them.
My little Missy had a thing for plastic bags, and she finally succeeded, one night, in getting her head stuck inside one. She went off like a blown-up balloon with the air suddenly let out of it. I had a hard time catching her. But she did give up on plastic grocery bags after that experience.