Over the past decade, real estate investment trusts have bought thousands of buildings that house nursing homes, hospitals, ...