Original: During the time of Muhammad, treason and apostasy were considered one and the same; nowadays, many scholars differentiate between treason and apostasy, believing that the punishment for apostasy is not death, while the punishment for treason is death.
Simplified: Muslim theology equates apostasy to treason, and in most interpretations of sharia, the penalty for apostasy is death.