Joseph bought all the land in Egypt for the king. Every Egyptian was forced to sell his land, because the famine was so severe; and all the land became the king's property.
The only land he did not buy was the land that belonged to the priests. They did not have to sell their lands, because the king gave them an allowance to live on.