Its also worth noting that according to several books in the setting, Replicator food never really tastes quite right. Very close, but never exact. And so things like homemade wine, proper steaks, just regular food you cook is in fact still preferred and there are markets for them.
The Star Trek society isn't socialist, its post-scarcity. Technology has advanced to the point that all basic needs can be cared for reliably, egalitarianism reigns supreme, and man's pursuits have expanded beyond the need to compete for resources -for the purpose of survival-. When it comes to politics, the Federation is a tad on the authoritarian side though also only really is so for Earth itself. It is very hands off for human colonies, allowing them to mostly govern as they see fit so long as they obey a basic charter of human rights. Meaning one always has the option of leaving for less authoritarian (or more) lands if one wishes while still benefitting from the post-scarcity society of Earth.
Commerce in the setting is actually fascinating and the only one to go into it is ironically one of the more disliked series in the form of Enterprise.