https://www.israelnationalnews.com/news/382101
"And at any rate, those who come and claim, 'Why do you not go to visit the sick and help with the war effort,' can be considered insane, since the yeshiva students and Torah sages cause that there be no need for a spear or a shield, and they cause that we should not need more tanks or fighter jets to protect ourselves, because they themselves are protecting us from the brutal enemies. And essentially, that they sit and invest in their studies, they fulfill the greatest [commandment] to visit the sick that there is, in their own way, since they are adding merits so that there will not be any more ill in the nation of Israel."
How does he explain the following?
Gittin (62a) the Sages taught in a baraita (Tosefta 5:4): One sustains poor gentiles along with poor Jews, and one visits sick gentiles along with sick Jews, and one buries dead gentiles along with dead Jews. All this is done on account of the ways of peace, to foster peaceful relations between Jews and gentiles.