Rigor mortis
The use of muscles in everyday actions causes the filaments in our muscles to knit together. When we stop using the muscles, the Adenosine triphosphate (the energy within the cell - ATP) helps untangle the filaments. But when someone dies, their body no longer can create ATP, so the muscles are unable to untangle, so they remain contracted.