They grew wheat to sell to earth, so they had it there. And they raised cattle (and one assumes pigs, as well) so there was milk and bacon.
Chickens should do well on the moon. And tomatoes.
It has been too long since I have reviewed that book, but I do recall they had some grievances.