When buying NFTs, a ledger entry holding the address of the file is made. This address determines your ownership of the digital asset. And when you sell NFTs, the code representing the NFT is transferred to the blockchain (publically distributed database), and the other person can easily check who is the true owner of that particular NFT. So it is a tradable digital receipt.