We do this just like a child does, packing sand into a bucket. We just do it on a larger scale.
You get surface tension with the water. That helps the sand grains stick together.