The comedy came from a specific brief
Joe Quesada asked the writers what a Spider-Man cartoon made for contemporary children should be; that brief encouraged fourth-wall breaks and trips inside Peter’s thoughts.
ComicBookMovie · Joe Kelly and Steven T. Seagle interview