At the time they were purchased, central banks around the world were going out of their way to assure people that rates would not be going up for a long time.
Not excusing their failure to properly account for duration risk, but regulators didn't see this coming either - what they were doing was considered to be not only wholly acceptable, but downright "safe".