This expression was used when the population dragged a boat to the beach, before the harbour was built.
The expression "dragging a boat to the beach" refers to the act of transporting a boat to the shore before the establishment of a harbor.