So next time you come home to a wet carpet that smells like ammonia, take a deep breath (somewhere else, in a different room). You aren't going crazy, and your house isn't cursed. You are simply witnessing the circle of life happening on your floor. It’s biology, not a crime scene.
Your wet carpet is basically a tiny, gross terrarium. Just remember: fast drying is your savior, vinegar is your weapon, and never assume your "clean" carpet is actually clean. Now go turn on a fan, pour yourself a drink (not on the floor), and maybe give your dog a pass. Gus and I both appreciate it.