During the Meiji period, because of 'each emperor one era system,' an era name was used until emperor died and it is not considered that emperor in fact retired and became a retired emperor.
明治時代では、一世一元の制などから、天皇が死去するまではその元号が用いられ、天皇が隠退して上皇になることなどもない。