It is common practice for companies to offer this if they have something to hide.
I have seen it tried in a situation where a manager called an employee a racial slur. The employee sued and the company settled. Too bad for the company the employee had an email where the racial slur was used. You may not hear about it because it is kept hush hush in Silicon Valley.
Something similar happened to me. A manager said that a certain gender wasn't liked around here. When they laid me off, they gave me an unusually generous package and asked for a signature.
The discussion can start from the point of view of wanting the laid off employees to have a soft landing, and the lawyers push for especially non-disparagement and tightening up NDA.