Your analogy would be more accurate if the bridges were constantly being blown up by terrorists.
Designing perfectly secure online systems is very hard (if not impossible).
Software is very complex, and people are trying to break in constantly. It only takes one person to get lucky or find a vulnerability