Well... To be honest, i don't quite get your question.
The two addresses in your post did indeed got funded in the past, and some of the outputs were spent. This basically means that somewhere out there, there's a wallet that contains the private key for these addresses (i take the term "wallet" as a broad term, it might be just a paper wallet containing nothing more than said private key).
As to how one could forge a wallet... well, for one, it has little to do with outgoing transactions to be honest... A thief could (potentially) create a wallet, encrypt it, use it, and at one point edit it so the private key inside said wallet so it is replaced by a fake private key. This way you could open the wallet, look at the available funds, look at the transaction history, but if you'd ever be able to decrypt the wallet, you'd notice the private key is, in fact, fake... So you cannot spend those funds.
It's also possible to give somebody a wallet with watch-only addresses by not importing the private key, but merely importing the address. This way, the wallet will be able to parse the blockchain, generate a complete history of the watch-only addresses inside the wallet, but since it does not contain any private keys, you cannot spend those funds.
Not all of these methods are possible with every wallet implementation tough... I'm working under the assumption you're using bitcoin core, but for other implementations, above statements might, or might not work.
But still, i don't quite get what you're asking... Did somebody sell you a wallet and told you that you could spend the funds funding 173bU1NZtrnxfXdVQFXsRp22nuc6fEmB4k and 1NFx9FETuduha8qJ6ehPYufTqVirB1Jf1D? I ask because this is a very, very, very common scam technique that's been used by scammers for a long time... They sell encrypted wallets that are either encrypted with such a strong password you'll never be able to brute-force it, or they sell a watch-only wallet containing no private keys at all, or they sell a wallet that has been modified so the private key in the (encrypted) wallet is just fake.
The endresult is the same tough: the victim is lured into paying a lot of money in return for a wallet they think contains a lot more money... But then they find out that this "lot more money" is simply unspendable or not there. In order to protect yourself from this scam, always remember: "if something seems to good to be true, it allmost always is". Nobody is selling a wallet worth $22.000.000 for $1000. That just wouldn't be a good business model, no matter how they try to sell it. I've seen many variants, like people claiming to sell wallets including payments for illegal items, so they sell "dirty" wallet for a fraction of their value: it's a scam... Those sellers know about anonymous coins, they know about mixers, they know about coinjoin, they know about non-KYC exchanges, they're just feeding you lies to get you to pay money for a wallet whose funds you'll never be able to spend.