Every country needs weapons not necessarily to kill their neighbors but to scare external aggressors, nothing more. This is why countries will budget a lot of money for the procurement of weapons and the producing countries are getting richer for it, there's nothing we can do about it. Going into a war with another country should be a last resort, like I already emphasized they allocate alot if money to buy weapons because they have to protect their sovereign territories. So without planning for war every country makes preparations for it, if you're perceived to be weak your stronger neighbor might want to take a piece of your land or territory like in the animal kingdom.
the main countries that produce weapons are not usually the countries that go to war.
when other countries are at war they supply them. but using deals that triple their funds and then take care of the rebuild after to increase returns even more
take UK&US they have not started the ukraine or isreal or red sea wars.. but they supply the loans and weapons
iran fund houthi and hamas and supply the weapons but iran does not run their own troops to the frontline themselves