It's a lazy and cowardly way to get people to cull themselves and save money on severance packages. It's not that deep.
A small percentage of countries also mandate severance even if the employee is fired (with cause).
But yes I'm pretty sure this is a big part of the reason for these mandates.