In places that aren't America, it's often a legal requirement (whether by statute or by customary contractual clauses) to give a minimum notice period, and employees who resign without notice can be penalised an amount of money that may be non-trivial for many workers.