Why do Muslims join kuffar armies?

because if you are convinced that these countries are waging crusade against Islam and killing Muslims then should be considered terrorist criminal countries. Why would you live in such a place?
Remember, it is not just about their being “kuffar” countries. Rather they are also enemies of Islam in khariji view.