So, I don't understand how the WIF private key depending if it's compressed or uncompressed can affect the UTXOs.
For this, you need to understand how P2PKH work.
But first, take note that WIF is encoded with a "
compressed byte" flag that tells the client which pair public key form to compute from it.
So compressed and uncompressed WIF point to their corresponding compressed and uncompressed pubKey format.
Then, simplest explanation to the UTXO: it's "
locked" using the hash of the public key. (
Pay-to-Pub-Key-Hash)
Since compressed and uncompressed pubKeys are entirely different, their hashes will be different.
So the UTXO created with them only corresponds to the public key that can reproduce its hash.