Once again, I'm assuming we're using Star Trek logic.
You can't replicate things endlessly. You need an external energy source and raw material. It's not a magic box that makes things out of nothing, it uses a lot of power, moreso than making the materials would. It's used on starships because it's more efficient than hauling all that food and stuff around, and on stations and remote colonies because it's hard to set up manufacturing facilities there. It's a convenience more than anything, they're very inefficient (compared to just manufacturing the object).
Even in Star Trek, where such devices are possible, on Earth or Vulcan or something they still just manufacture things.
Einstein suggest that matter and energy were interchangeable. The one thing that the universe is full of is matter. The asteroid belt around this solar system would meet our needs for quite some time.