Now, I absolutely loathe the modern corporate culture, which is happy to escort you out of the building the moment your employment is terminated, without giving you a chance to even say goodbye to your colleagues, who you might have been working with extensively for years. It's deeply traumatic and it contributes to an overall sense of fear and "screw teamwork, it's everyone for themselves".
But now when I "give notice" and they don't even let me try to work the next 2 weeks, I'm grateful. I don't want my coworkers to ignore or patronize me while I sit idle or do make-work. I don't want to have to put on a show about how wonderful the company and team are, and why I'm leaving anyways. Nor do I want to expose my true feelings to my co-workers and infect them with my bad attitude--even if the writing is on the wall for the entire enterprise. It's like a breakup: the best thing for everyone is to make it clean and crisp, say "it's not you, it's me", make a sincere statement to the effect of "let's be friends", and then see each other roughly never again.