I was about to play devil's (God's?) advocate and say, "Maybe he was just punishing them for their pride" or something like that, but the Bible makes it pretty clear:
Genesis 11:6
And the LORD said, Behold, the people is one, and they have all one language; and this they begin to do: and now nothing will be restrained from them, which they have imagined to do |