Decades of optimization. Fertilizers sold by the pound are purer now than before -- more refined. GMO makes crops immune to many pests and diseases. Cross breeding with drought tolerant crops reduces water requirements.
Technology like Hydroponics also reduces consumption while increasing output.
Computer aided design helps with construction.
It's all there.
This is part of why R. Buckminster Fuller thought there was more than enough to go around.