When postgresql sequences get out of sync?
There are a few possible cases where things can get out of sync.


Very old versions (unsupported) used to sometimes fail to set sequences on backup restore.  If you have manual backup and restore routines, this is somewhere to look.
setval('sequence_name', 1) will set to to 1.


Those are your only two possibilities unless you have a short cycle, and are cycling.