They only work in specific regions. Civilization is an export, hence why those regions have seen mass migration to cities as food imports replace tiny self sustaining farms.
Comparing the two, if vertical farms work like third world farms no one in their right mind is going to go to Mars.