Yes, enclosed malls were the result of a cohesive society and low-cost energy, both of which described the America that used to be.
I hate going to a mall. Our local one doesn’t have any stores of interest anyway. Did you know there is a store that sells nothing but caps?
I can shop from an endless assortment of goods from the comfort of home and have it delivered to my doorstep in two days. Why would I bother going to a mall?
Add in a safety factor, and it makes no sense at all.