It's been years since I've had a history class, so I'll just speak hypothetically. If I were running a country at risk of being divided, I might go to war to prevent secession if the rebelling territories had resources I needed. Examples include cotton, rivers/ports/shipping lanes, farmland, etc.