Originally, this scene was just a bit of slightly farcical heist-caper business: the protagonist gets trapped in a bathroom because there is an officer coming down the hallway, so she???s forced to fake-generate a person to send out as a decoy, so the officer goes after that person and she can sneak out again.