You store the seed phrase securely as well somewhere, and if the hardware wallet fails, you can still access your coins.
As someone said earlier in this thread - Hardware wallets are simply another computer that stores your private key. There is nothing inherently different about its "Hardware".
You can import that seed phrase into any number of wallet programs if you lose your hardware wallet.