It is entirely reasonable to believe with only Star Wars in the can that a great deal had to be created on the fly.
I don't get why it is so controversial, except that starting in the 90's Lucas pretended he had all 9 films in his head and then on paper from the beginning.