The US government thought that internment camps were necessary for the Japanese descendants and Japanese-Americans because they believed that most of them were spies for Japan, and it was they that leaked information and coordinated the attacks
hope this helps