The one time I was laid off I had to sign an NDA and a non-compete to get severance. I signed it because it was a decent severance package, and the company was going bankrupt and I figured there would not be any entity left that would care or try to enforce it.