In public-key cryptography, keys come in pairs. The public key can go anywhere. The private key is the one that matters: it decrypts what was encrypted to you and produces signatures that prove something came from you.
What the private key controls depends on the system. For a PGP user it's your ability to read your mail and sign messages. For an onion service it's the address itself: the file hs_ed25519_secret_key in the service's directory is the identity, and anyone who copies it can impersonate the site. For Bitcoin it's the money. There is no "forgot my key" button anywhere in this picture.
So protect it in proportion. Encrypt PGP keys with a strong passphrase. Back up onion service keys offline and keep them off shared hosting. For crypto, let a hardware wallet hold the keys and back up the seed phrase it derives them from. If a private key leaks, the only fix is to revoke or abandon it and start again.