The mentioned bridge failed because it was not designed for the particular input of the ship collision. Same applies for software.
Hardware, time, entropy, users are all inputs. Software and inputs could be the same but some entropy change, or hardware aging could still result in failed output. Isn’t it also failure of the software?