They did this in their own country! It's not because it's in Pacific that is not in USA, it's on territory of Marshall island. And after 1979 it's was the USA.
Nuclear testing in the Pacific after WW2. The ships were earmarked for scrap and were abandoned. Pentagon wanted to see the effects of Abombs on large ships at sea. They were eventually sunk.