WHY do human fingernails and hair keep growing after death?

The nails do not grow, yet the skin around them dries out and pulls back, making the nails appear longer.

Moreover, the dead person's skin loses moisture and shrinks, exposing a previously invisible part of the hair on the male chin.