Going to the beach hasn’t always been recreational.