It means dwarves can walk through pillars, so there's some benefit to building them compared to just not mining a tile which would also prevent a cave-in.
At the moment there's no difference in placing any room areas next to any others, but in the future I'd like to introduce some kind of efficiency bonus or something similar for having a room enclosed by walls, a bit like how it works in Dungeon Keeper.