The only land he did not buy was that belonging to the priests, because they received a fixed allowance from Pharaoh and lived on the allowance he gave them. That is why they did not sell their land.
In context
20So Joseph bought all the land of Egypt for Pharaoh, since the Egyptians, one and all, sold their fields, because the famine was too severe for them. So the land became Pharaoh’s, 21and Joseph reduced the people to servitude, from one end of Egypt to the other. 22The only land he did not buy was that belonging to the priests, because they received a fixed allowance from Pharaoh and lived on the allowance he gave them. That is why they did not sell their land. 23“Now that I have bought you and your land for Pharaoh today,” Joseph said to the people, “here is seed for you to sow the land. 24But when the crop comes in, you must give a fifth of it to Pharaoh. The other four-fifths you may keep as seed for the fields and as food for yourselves and your households and your children.”