That is because expiration timer is a buff. When you cast Mirror Image you lose all buffs. When expiration timer is removed, affected unit instantly dies.
So basically this is what happens: Cast Mirror Image -> Remove all buffs from caster -> this removes expiration timer -> caster lost expiration timer -> kill caster.