The North Koreans are particularly frustrated by American financial sanctions. By playing its nuclear card now, Pyongyang may hope to put pressure on America and its neighbours to ease its isolation.
Oh yeah, nothing gets you invited to birthday parties faster than nuclear threats.