Even if we had fully-automated systems providing plentify food and water, we'd need some ssytem, likely capitalism, to distribute still-scarce luxuries (e.g. beachfront property)
And if we had total post-scarcity (effectively infinite energy and Star Trek style energy-to-matter replicators), we'd just be fighting over scarce land as everyone fills up all the space with replicated junk.