Why were nuclear explosions harmless before 1996?

They weren't. Hence the treaty.