Picard said virtually the same thing in Allegiance. He ordered ales for everybody in Ten Forward. And everyone thanked him with gratitude.
Which made little sense if it's all free to begin with![]()
I've since tried to rationalize that as ships having "replicator rations" like they talk about on Voyager. Granted, on the Enterprise D it isn't as strictly enforced as necessity required it to be on Voyager, but there probably is some sort of system in place as a means of maintaining discipline or motivating the crew to work their hardest.