You still have the problem that you need to be able to grow plants beyond lettuce and strawberries. No one is growing cereal grains or root crops vertically. It’s not economical viable.
Quite simply, the energy and capital costs of growing bushel of wheat are more than the bushel price of wheat. This difference isn’t just a little, but a lot. If I’m reading the table right in page 19 of the appendix linked, it’s as bad as 37x in 2019, and only projected to fall to 4.6x by 2050.