Because the soil and climate (but for, you know, the lack of rainfall) is otherwise fairly optimal for it, and it is easier to move water to the desert than soil and desirable aspects of climate to the not-desert.
Please research this topic before responding again.
Edit: spinach? I'm also talking potatoes, carrots, lettuce, onions, broccoli and cauliflower. I wish we were only at risk of losing spinach.
Quite a bit of the southern part of the San Joaquin Valley (which is the southern limb of the Central Valley, the Sacramento Valley is the northern limb) is, in fact, desert.
If they could without displacing some other more valuable crop, at lower total cost than what they have been with irrigation in the Central Valley, they already would be.
Losing production in the Central Valley reduces overall supply and increases prices, whether it moves some production elsewhere (displacing existing land uses) or not.
To extent that either of the factors mentioned is an actual subsidy (the labor one doesn't seem to be -- nor is it necessarily a differentiator from alternative production areas -- but the water one might be), that may mean that the reduced public cost of the subsidy may to some extent offset the increased sticker price of the no-longer-subsidized goods
So unless you're willing to forego vegetables every single winter, those farms in the southwestern desert (as backwards as it may seem) are there to stay until they're too expensive to maintain.