Of course, I seriously doubt replicators can just create gold/latinum/whatever out of thin air/pure energy, so that point is moot.
I thought that is exactly what replicators did. It is part of the no need for money prejudice of the Federation expressed in the TNG era. For dramatic reason things like dilithium crystals and later latinum had to be replication resistant waiting for a genius Scotty, or more likely a Rom considering the motivation to break the code
I agree with The Wormhole
latinum is better then gold because it was used as a dramatic and comedic twist for a human audience after a few episodes of gold pressed latinum being introduced as a currency of sorts we are presented with the latinum as actually being the valuable component.