It's much easier to stay on task when you see other people working hard towards the same goal--and much harder to get distracted and browse reddit.
Private offices don't work for me because they are stifling and isolating.