Why do you have to have an executor?

Someone has to be responsible to see that the will is followed. If no one is named, the court will appoint someone.