I don't know what the etymology of "happy as a clam" is. But I like to think that it means that the clam shell is covered with shapes of smiles--those many curves on the clamshell itself, one right above the other so that the shell appears as though it's been painted with many smiles.

But I'm probably wrong.

The big gun word hounds will check in shortly, however, and tell you the truth.