Modular offices are usually complete as distinct components when shipped. The standalone design is a major part of why they’re so durable compared to other options.
Prefab offices are usually shipped in parts and assembled on-site in large pieces.
Of course, some buildings are a mix of modular and prefab components.