The "diving" occurs when the flexible part of the larger container is pressed inwards, increasing the pressure inside the larger container, causing the "diver" to sink to the bottom until the pressure is released, when it rises back to the surface. If the container is rigid, as with a glass bottle, the cork sealing the bottle would be pressed inwards or drawn outwards.