The charedi community proclaims that rather than to leave the Beis HaMidrash and fight with their bodies, the best protection against our enemies is sitting and learning Torah.
The Israeli government, which sees things otherwise, is taking various punitive financial measures against those who do not serve in the IDF.
In response, the charedi community today left the Beis HaMidrash to fight this with their bodies, rather than protecting themselves against their enemies (in this case, the government) by sitting and learning Torah.
This may appear extremely inconsistent. But I think that charedi avoidance of the IDF does not really have anything to do with believing that sitting and learning Torah is the best protection against enemies. It's because joining the IDF would exact a great price on the charedi community, and they do not see any reason to pay that price, when others can pay instead.