Obviously because they think their return on cash/equity in their core business is higher than the rental yield.
Peter Thiel for example has argued along the same line of logic that large tech companies such as Google, Apple, Facebook have run out of tech innovation ideas and that’s why they sit upon an enormous amount of cash reserve. Only Amazon seems to continue to have an unlimited streams of ideas on where to invest in their core technology business.