Snails will hide under the edges of plant pots, or under a widow ledge, anywhere they can attach themselves to. They will lay their eggs in plant pots in the soil, or under suitable places if they can get there and as long as it keeps damp.
It's possible the adult snail went up the wall, laid eggs, then returned to the ground, they do climb walls.