As with most other marine bivalves, the pen shells have planktonic larval stages. Eventually they settle down and attach themselves by their byssal (not "bysall") threads to buried objects. They don't move again. My guess is that the rope you found had been buried long enough for the animals to attach themselves to it, probably in shallow water, and then was exposed and washed up.

