It's difficult to determine how things happened in your above scenario without more information (specifically with regards to weapon/defense builds per ship).
However...
Defenses are depleted during the combat round and refreshed at the start of the next round-this means when they do get hit, they can't sustain as much in a given round as would be expected.
The targeting algorithm only chooses one target for each side, which means that all ships on each side will target the same ship until it dies.
This means that only when your defense is sufficient to absorb a majority of the opposing fleet's firepower is it actually going to make your ships anything close to invulnerable.
Since there comes a point where such a quantity of defense is actually impossible, defenses are not as valuable late game as they are early game.