I kind of hate the sudden merc armies out of nowhere. I always think it's just there to annoy you. If the AI had all that cash and used it for mercs during the actual war with the player, it could have won then and would not have had to lose its provinces.