According to the Paradox Wiki Muslim Religion section, you lose 75% on death. That fits arithmetically.
When a new ruler succeeds to the throne, the Piety score is reset and 3/4 of the piety score is lost, the new sultan is not assumed to be as impious or as pious as his predecessor.