Sand trap for the tide

Lîle de Ré, but a construction seen many other places worldwide.
The tide often steal the sand from the beaches, it’s not good.
So this construction probably “makes” the tide dizzy and works perfect
– so it forgets to take with the sand out into the sea.