Why do Muslims join kuffar armies?

to answer your question directly, yes, nominally and unintentionally, we rely on the mercy of Allah (SWT) like with everything else

but as ive said in the past, the perfect abode for ‘the best of muslims’ is in a state of shariah.

go ahead with the obvious