The only land he did not buy was the land belonging to the priests. They received an allotment of food directly from Pharaoh, so they didn’t need to sell their land.