Then that portion of that building could be counted towards indirect costs for that research, and the university is better off than if they had paid for the building as well as paying for the upkeep and those cost savings can be passed along to taxpayers.
Your imagined scenario doesn't apply to this very real example in the article in question though.