Why did a war fought over religious differences result in stronger states?

Why did a war fought over religious differences result in stronger states?