So Joseph bought all the land in Egypt for Pharaoh. Each and every Egyptian sold their fields, because the famine was hurting them so badly. The land ended up being owned by Pharaoh,
The only land he didn't buy belonged to the priests because they had a food allowance provided to them by Pharaoh, so they didn't have to sell their land.