The shell shape looks more like a mussel then a clam.
Also, I think most (maybe all?) mussels are sessile, whereas clams can burrow and move around.
babydragons is probably right, you probably had some in the larval stage come in on the driftwood.
would be interesting to see if you get an established population.