Clever planning...
...means you can integrate a generator without losing too much space. I've done works on buildings where they've had gensets on the roof, and in underground plant rooms. I've even brought generators in to these sites as a backup while work was undertaken on the primary set, but normally n+1 is chosen where they can!