These characters are reincarnations of humans or other beings. Reincarnated beings may not remember their past lives after they are reborn, but learn of their former existence later on. In other cases - especially isekai ...
These men and women of the cloth are members of religious orders invented specifically for the anime or manga they star in.