They did that because they wanted to protect their country from the Huns, a dangerous group of nomads. They built the wall and kept repairing it so that the Huns would not invade them. They wanted it to be the best of the best.
Hope this helps... mark as Brainliest plz