"Pharaoh" is the Greek form of the Egyptian phrase per-aa. "Per-aa" means "Great House," which actually referred to the king's palace rather than the king himself. It began to be used as a metonymy for the king from the New Kingdom onward. The source for this that I have on hand is Ian Shaw and Paul Nicholson's The Dictionary of Ancient Egypt, 1995.