Some places I've worked have asked me to sign such agreements. I've always signed them, even though I obtained no benefits from signing nor would incur no liabilities for not signing. I signed because I didn't plan to divulge anything anyway.
I doubt that those agreements would be enforceable in a commonlaw jurisdiction, since there was no consideration (benefit) for me.
If you've signed such agreements, what were your reasons?