 The droid factory chase sequence was not in the original script.  Anakin and Padme were originally captured as soon as they arrived on  Geonosis. George Lucas (qv) wrote an additional action sequence  based in the droid factory to lead up to their capture that was  filmed in March 2001.