When it's a generic office building, businesses frequently do lease them, unless they have so much free capital (like Apple, Facebook, etc) that they can build a custom building for themselves as a long-term HQ. But you're right with McDonald's and many franchises they have to build with a specific architecture style that's custom to their brand.