This is assuming that they hire someone else to replace you, which is usually the case, so they're only saving a couple of months of salary, but now they have less staff developing the product, the staff they have are busy doing interviews, and they then have to pay a recruiter fee.