Paul was not telling them to not eat he was telling them to share.
Here is the Amplified version:
17But in what I instruct [you] next I do not commend [you], because when you meet together, it is not for the better but for the worse. 18For in the first place, when you assemble as a congregation, I hear that there are cliques (divisions and factions) among you; and I in part believe it,
19For doubtless there have to be factions or parties among you in order that they who are genuine and of approved fitness may become evident and plainly recognized among you.
20So when you gather for your meetings, it is not the supper instituted by the Lord that you eat,
21For in eating each one [hurries] to get his own supper first [not waiting for the poor], and one goes hungry while another gets drunk.
22What! Do you have no houses in which to eat and drink? Or do you despise the church of God and mean to show contempt for it, while you humiliate those who are poor (have no homes and have brought no food)? What shall I say to you? Shall I commend you in this? No, [most certainly] I will not!
What was happening was that when they gathered together for the after service Oneg there were some who were able to bring a lot of food and some who were not able. Those who were able to bring food were concerned about filling his own plate first and not caring about those who had less or nothing due to their poorness. When it is said "what, don't you have your own houses to eat in?" he was speaking to the rich who were able to go home to a house where there was plenty of food so they did not need to be concerned with gorging themselves of food before those who had less could eat too. In putting it in other words he was saying: "since you have houses that you are able to regularly eat in should you not consider first your brothers who are not able to eat as regularly as you and allow them to eat before you go in and fill your plates up for yourself. If you are not able to get what you want on your plates now, you will be able to do so when you get home. YOU have houses where you can eat plenty, they do not"