- if the employee leaves, it benefits the business:
-- the employee has the time to hand over their work
-- the employer has time to look for and find a replacement, or prepare for work without the employee
- if the employee is fired, it benefits the employee:
-- they have the time to look for a new job
-- they continue working, receiving salary, and don't have to worry about bills, rent etc.
In both cases the employer and the employee can agree on the actual time when the employee quits: it could be the next day, or next week, or after three months, at the end of the notice period.
There are thousands of places to work all over the world.
By all means work in Munich if you want to. But to choose to live and work in a city and then complain about rent is absurd.
There’s a mandatory three-month notice period in Sweden, so that the person who is fired (or sho leaves) has the time to find a new job