If you can afford to pay am army you can afford to pay the opposing side instead. And, many fine arguments abound for paying off potential invaders. It may be cheaper, and it may include paying them to go and attack somebody else.
On the other hand the adversary stands to gain a lot from pillaging your countryside, both gaining wealth from the loot they capture and security by knocking you out as a potential threat. In the most extreme case they may be looking at exterminating you entirely and taking your land and everything in it for themselves. They may be facing starvation and death if they don't take your resources from you. You fundamentally can't offer them more than they could potentially take. It is rational for them to accept less treasure for sufficiently reduced risk, but there is no guarantee you can offer enough that fighting for the rest isn't worth it in their eyes. Paying them to attack someone else is even harder - they still do not reap the full benefits of defeating you, but they still suffer the risk of fighting, and they have an additional enemy to boot. If they do manage to go for that option, you're almost certainly losing a potential ally (the enemy of your enemy is your friend) and whoever wins that conflict is going to be pretty pissed at you.
On top of this, paying your own people to fight for you strengthens your side. Yes war may not be the optimal use of resources but those dollars are flowing right back into your economy feeding your people, employing your smiths, etc. The strong army you raise both deters potential adversaries and can be used to extract demands from neighbors. Conversely, paying tribute to the adversary makes them stronger - they can afford more men, better weapons, deeper war chests. You may buy yourself time but the fundamental grievances that made war possible in the first place have gone unaddressed; it is reasonable to expect you will wind up in the same situation again at some point, but the next time it will be more expensive to bribe them while you will have less money to raise an army for yourself. You can't repeat this cycle too many times.
All this assumes your adversary is rational. Unfortunately that's not a safe assumption. For the right price you'll be able to raise an army, but whether it be a holy crusade or a fight for freedom or a face launching a thousand ships, a particular army might be fighting for something they consider priceless.