Where does “廟” come from?

Words derived from “廟”