Humans need to eat and farming is not very lucrative are consistent statements. Crop production is far beyond the bare minimum of what is needed; it's mostly to supply wants, not needs. As such, it's perfectly fine to trade it off against other things, like PV, that also supply wants.