You set them up
That last part does not follow from the preceding points.One important factor when concerning the genie is the name of his source. A source that spawned 3 movies and a cartoon. It's called "Aladdin". Not "Patch Manhattan". Not "Robin Williams is just that good". This is because genie rarely saves the day. Aladdin does with his wits. So the genie is not half as powerful as we think he is.
A really, really, really powerful fairy.A deleted song from Aladdin reveals that "Prince Ali's" procession was really insects and rats, meaning he's more like a fairy than an omnipotent.
These being some of the many, many, reasons everyone likes to pretend Return of Jafar never happened. Even more so than most Disney Sequels.Now let's discuss Jafar "the world's most powerful genie" a paragon of the genie race. Even though he is omnipotent how does he try to defeat our heroes? In the most roundabout, ridiculous way possible which would be circuitous by bond villain standards. And who kills Jafar may I ask? A Parrot. That's right, killed by his heel face turned familiar. That's a low way to go.