Directing is writing. Before you have something to shoot, someone needs to write it. Shooting and editing are the continuation of that writing.