This is because they are less susceptible to predators when humans are controlling them. Humans will protect them. By V. G. Childe. Increasing dryness in the Near East at the end of the last glaciation. Humans and animals were forced into oases where plant resources remained abundant.
Humans begin to tend plants and animals in order to guarantee themselves a regular diet.
The problem is it actually became warmer and wetter in the Near East during this time. By R. Braidwood. Here, there were dense stands of wild wheat and barley. Foragers settled here and became more efficient at exploiting these resources, and presumably began to experiment and manipulate plants. Agriculture is not an inevitability.