The problem is that on large pangea maps, you would need a wall of 30 units to block an enemy civ, that's an entire army early in the game. It's inefficient, annoying to set up and leaves your cities vulnerable.
Walls were used in the real world effectively for thousands of years, why not in...