They want to be actually sovereign states. Having nukes is pretty much a prerequisite for the reasons GP explained. Even if, back when the countries you mentioned were developing their nuclear programs, their overt focus was mostly deterring USSR, it's hard to imagine they weren't thinking about their relationship with the USA either.