Humans are not machines.
They are biological machines. Evolutionary machines. Ecological machines.
What does that mean?
All it means is that you have to account for the "quirks" in order for them to operate optimally in an collective setting.
The Google Campus has done a great job in accounting for the quirks.
(Evolutionary Psychology and Organizational Design).