While someone does not have to be a priest can be ELECTED pope, once elected he would not only be ordained a priest but also a bishop. An elected layman only becomes pope upon ordination as bishop. Thus the impossibility of a woman becoming a bishop would disqualify her from being eligible for election.
Good point.