Odd. Reading the source story (Ala-el-din and the Wonderful Lamp, from the Tale of One Thousand Nights and One Night), there were TWO Jinnis. The Slave of the Ring, who got him out of the cave, and the Slave of the Lamp.
from the Slave of the Lamp:
he’s wished for food twice,
wished for the Wezier’s son to be stuck in a closet on his wedding night to the sultan’s daughter,
wished for a handsome dowry for the Sultan’s daughter,
wished for a “bath like the world has never known”,
wished for 12 damsels dressed like king’s ladies,
wished for a palace
wished for a carpet – not a flying carpet. Just a carpet.
wished for 10,000 dinars
wished for an addition to the palace
Then the lamp is stolen from him, and he’s back to the Ring
Wished to be taken to his stolen palace
Wished for the palace to be taken to China
So…
My guess is that the real story would have been long and boring, and they had to cut it short somehow, and keep it from being the tale of Aladdin and his Magic Butler.