Japanese snails are able to store a males sperm for quite a long time, and give birth when conditions are right, could be many months before giving birth. So just because yours gave birth, doesn't mean it mated with the mystery snail, it may mean it became "pregnant" before you acquired it.