That’s true, but maintenance of a more permanent structure would have to require a high degree of self sufficiency, and the expense to withstand the higher daytime moon temperatures could be prohibitive (what was experienced in space flight was extremely low temperatures, down as far as 454°F).
Have a reflective roof, and the temperature underneath should be reasonable.