It was made as a marketing campaign for the then-upcoming Lilo & Stitch. It's success could be one of the reasons why the film did well at the box office.
Chris Sanders came up with the idea where Stitch would invade preexisting Disney movies for marketing.