Why does the carcass stiffen?

Carcass stiffens because of rigor mortis. When the life ends, there is a chemical change to the muscle cells. It's one of the recognizable signs of death.