Walls are cheap. Depending on who you ask the HVAC is enough cheaper as to be worth it. (open offices are a nightmare to heat/cool: there are always temperature gradient across large rooms)
In fact, offices are cheaper because you don’t need to over staff by %100 and incur all that communications overhead.
Different countries have different rules. Check you local laws before you put in an office without windows.