It’s a deal between two unrelated parties market value is whatever the buyer is willing to pay.
Stuff you get in trouble for is selling to yourself at inflated price (PIF to PIF) or doing swap deals with inflated book values to cheat the maths like Juve did.