Hi,
From the below o/p, there no "(default)" next to "current state" which means you have configured RE0 to be master and RE1 under the "set chassis redundancy routing-engine <0/1> <master/backup>" stanza.
Routing Engine status:
Slot 1:
Current state Master
Election priority Backup
So you in your case, after the backup Routing Engine takes mastership, it continues to function as master even after the originally configured master Routing Engine has successfully resumed operation (that is when you insert new RE in slot-0). You must manually restore it to its previous backup status. (However, if at any time one of the Routing Engines is not present, the other Routing Engine becomes master automatically, regardless of how redundancy is configured.)
https://www.juniper.net/documentation/en_US/junos/topics/topic-map/configuring-routing-engine-redundancy-tm.html