Sumerians built ziggurats because they believed that they would be more closely connected to the heavens. They believed that ziggurats connected the earth and the heavens.
they built them to move closer to god