George Lucas says that he already wanted the first Star Wars to be named Episode IV when it was originally released because it was the adaptation of the middle section of an extensive script he had written. But I am not sure how much truth is in that.
We can only guess. The man has denied things he said many times.