The Architect had previously designed several versions of the Matrix, but all of them failed to function properly. The problem was that humanity did not have genuine free will and choice to accept or reject the Matrix; to create this choice, the machines created Zion.