Food is literally equal to power. It's fuel. The joules have to come from somewhere. And "micro-machines that can produce molecules on demand" would be life. If you have tons of free electricity you can turn it into food with greenhouses and grow lamps. As it is, it's usually cheaper to use solar directly.