IV believed that the statue spoke to him, telling him he would become Pharaoh if he cleared the sand away.
IV thought he was meant to be the Pharaoh.