Happy Tuesday. Been a while since I draw anything, I started, but this is an old one still...
The real reason clams open when cooked its because the joint shell acts like a spring and opens the shell, while the clams use muscles to hold it shut.
When clams die, their muscles decomposes and loses their grip to the shell but the joint will still open up...which is similar to how our jaws open up when we die...