Through the studs on top. Each stud is a small cylinder that fits into the underside of the brick above, and the clutch between them is what holds the assembly together.
The system works because the spacing is precise and consistent — studs are evenly spaced on a fixed grid, and the tubes underneath grip them with enough friction to resist slipping while still allowing bricks to be pulled apart by hand.
That combination of exact tolerances and the right amount of friction is the whole reason a stack stays standing yet remains rebuildable.