I have a cat who can open the doors to the house and inside the house. The doors have handles that he can jump onto and pull down. We can’t lock him inside or outside. He’s very clever.
Our cat used to open the bedroom door while we were sleeping, close the door behind him, and jump in the bed for a quality snooze. We had no idea how he did this every night until I woke up and caught him pushing the door closed with his head.