In one job we had large rooms where each team was housed. There were no closable doors so it felt open but gave us quiet so we could concentrate.
That doorway was a psychological deterrent to people coming to socialize or ask stupid questions. It made them stop no briefly.
The people who needed privacy due to sensitive nature of their work, like HR and legal, got offices with doors. I hear from people at other companies that this is not always the case.