Analysis of information sources in references of the Wikipedia article "Accidental travel" in English language version.
"Isekai" means (roughly) parallel world, and has come to denote the sub-genre of story in which a person from the real, mundane world finds him or herself in a radically different world; this parallel reality
both of those shows are what are called isekai, or "accidental travel" stories, in which the protagonist is transported to a fantastical otherworld