In the book Calculating God, a character notes that this is a common civilization-wide choice. Living in virtual reality, rather than trying to expand into the vast expanses of space, is a common trope as much as it's a logical choice. It neatly explains the Fermi Paradox. In some fiction, like The Matrix, the choice might be forced due to cultural shifts, but the outcome is the same. A relatively sterile low-energy state civilization doing pure processing.
I wonder if it's illogical to think that all civilizations must always pick the most logical of the options