"I have seen people (one was a VP of Engineering) escorted out of the building, sent in a cab to home along with a security guard (this was in India), not allowed access to computer or talk with other employees. "

Some companies are just paranoid. My company has now had several rounds of layoffs, people were kept on for a few months, got severance and everything went as harmonious as layoffs can be.

The cruelty the way some companies and now Musk with DOGE are doing it is simply not necessary and reflects a lot on the character of leadership. To me it looks like they are deeply insecure and hate their people.