What could be attached to the shell is what is left over from a burrowing organisms hole. The hole fills with sediment that cements together. When surrounding mud that turns into rock erodes, it leaves behind the cemented burrow mold. I have collected these when hunting shark teeth in Bakersfield, California at Shark tooth Hill.