In the story, Hashem caused a confusion of languages to punish those involved for their hubris.
Come, let us descend and confuse their language, so that one will not understand the language of his companion." זהָ֚בָה נֵֽרְדָ֔ה וְנָֽבְלָ֥ה שָׁ֖ם שְׂפָתָ֑ם אֲשֶׁר֙ לֹ֣א יִשְׁמְע֔וּ אִ֖ישׁ שְׂפַ֥ת רֵעֵֽהוּ: And the Lord scattered them from there upon the face of the entire earth, and they ceased building the city. חוַיָּ֨פֶץ יְהֹוָ֥ה אֹתָ֛ם מִשָּׁ֖ם עַל־פְּנֵ֣י כָל־הָאָ֑רֶץ וַיַּחְדְּל֖וּ לִבְנֹ֥ת הָעִֽיר: Therefore, He named it Babel, for there the Lord confused the language of the entire earth, and from there the Lord scattered them upon the face of the entire earth. טעַל־כֵּ֞ן קָרָ֤א שְׁמָהּ֙ בָּבֶ֔ל כִּי־שָׁ֛ם בָּלַ֥ל יְהֹוָ֖ה שְׂפַ֣ת כָּל־הָאָ֑רֶץ וּמִשָּׁם֙ הֱפִיצָ֣ם יְהֹוָ֔ה עַל־פְּנֵ֖י כָּל־הָאָֽרֶץ:
I've read the real story is about the collapse of the civilization and the utter collapse of literacy.