When you first set up your wallet, it usually creates and stores your private key. The wallet might keep it hidden for security reasons, so you may not directly see it. If you have a software wallet, there's often a function to export or display your private key. For hardware wallets, it never leaves the device. If you forget your key, you'll typically use your seed phrase to recover your wallet and associated private key.