וְיַעֲקֹב֙ נָסַ֣ע סֻכֹּ֔תָה וַיִּ֥בֶן ל֖וֹ בָּ֑יִת וּלְמִקְנֵ֙הוּ֙ עָשָׂ֣ה סֻכֹּ֔ת עַל־כֵּ֛ן קָרָ֥א שֵׁם־הַמָּק֖וֹם סֻכּֽוֹת׃
And Yaakov journeyed to Sukkos and built himself a house, and for his cattle he made booths; therefore he called the name of the place Sukkos.
Bereishis Rabbah 78:16.
Sefaria · Bereishis Rabbah 78:16
ויבן לו בית — בית תלמוד; ולמקנהו עשה סכות — סכות ממש.
“And he built himself a house” — a house of study; “and for his livestock he made booths” — actual booths.
The Midrash distinguishes the permanent structure for human dwelling/study from the temporary shelters for the animals.
Derash on the two constructions (Bereishis Rabbah).
Yaakov established a house of study for himself and ordinary booths for his livestock, giving the place its name.