Probably the snail was spawning due to stress from being moved. This is not unusual, and the presence of the other snail was coincidental -- they are broadcast spawners, so there's no need for mommy and daddy snails to ever even see each other.
Be sure to acclimate snails very, very slowly. Poor acclimation can induce stress-related spawnings and can even kill them days after the fact.