Why do Muslims join kuffar armies?

well then if you take it that way, all armies/millitaries are killing innocent people. then joining the army would be a kuffar right?