Theoretically, tech companies valuations are based on the notion that the best place for them to invest money is internally, that their internal flywheel is the absolute highest return on capital.
Practically speaking, they also need to build data centers, and real estate has more pedestrian (returns and) valuations, even when it houses fantastical uber tech.