What’s your opinion on getting fired « instantly »in Switzerland ?

I’m working already for two years in Switzerland, and i’ve seen so many people getting fired instantly even with 20 years+ experience in the same company but for a reason of course, as someone coming from France, it was a culture shock because it’s so hard to get you fired in France almost impossible.