Only Disney Character to question why people are randomly singing (or was it Patrick Dempsey' character Robert Phillip in Enchanted?) Maybe Flynn Rider is the first fully animated Disney character to question it.
I always thought it was referencing beauty and the beast. Cause the same things happen in beauty and the beast. In Aladdin it's not a spell. It's just a genie with magic. In beauty and the beast it's actually a spell on the castle.