There already was some understanding of hormones, and one of the hormones used in the body to regulate pregnancies is also present in urine. Similar mechanisms had been found in other animals, and it turned out they were similar enough to allow the human variant to trigger processes in animal bodies. Mice and rabbits had been used before, so there was logic to testing if it transferred to the frogs too.