From what I've seen, a lot of rooms within some temples, usually the boss room itself, seem like they could have been built for certain kinds of ceremonies and rituals. Since the races of the inhabitants of the area are varied, their needs would have to be met with whatever the building contains.