so... if it that simple and cheap, why need freighters? Because that makes every solar systems become self sufficient. Replicator could render every economy rules that we know now useless. Plus, the non currency life in Federation makes Merchant obsoletes. So why we still have the freighter captain Yates in DS9? Why they still transporting goods from one place to another? Because it is no longer necessary, if Replicator is indeed the machine of god. They don't need freighters, Merchants, distributors, etc anymore. Everyone could make their own item with the "replicator". and everyone could take the energy from their own solar system.
So... unless replicator is not that powerful just like you state, replicator is just a bad idea that come from bad writing of those lazy writers.