Big companies offer packages when laying people off, n weeks of full salary once you are gone with m weeks before of time to find a new role internally or externally. This does not happen when you are fired for cause.
Most people have a notice period so that’s normal. If you are ‘lucky’ you have garden leave so you can’t work/need to go to the office during this period