@ James Barnes A friend of Jasper’s snuck into the palace, into Jafar’s room and picked up Aladdin before leaving the palace then getting on the magic carpet and flying away.
It didn’t take long for jafar to notice Aladdin had gone missing and it passed him off. He went to jasper “where is he? I know you had something to do with this”