Why did pharaohs become pharaohs?

Egypt needed people to rule them.