Labor and machinery.
You can't run a harvesting tractor through a greenhouse. So, a lot of produce from greenhouses or vertical farms (etc) ends up with a manual harvesting step.
This is why you pretty much see greenhouses exclusively used for foods which would require that manual step anyways.