I'll have to remember once next time I come across it, but most of the time it happens when clicking a link makes the browser change URLs and that new page tries to pop the window up. UInfortunatly it's bad webmaster design, and is identical to popup ads most of the time.

I have to admit that popup ads never crossed my mind back in 98 when playing with DHTML code in it's own popup window.